nerves_hub_cli v0.9.0 Mix.NervesHubCLI.Utils
Link to this section Summary
Functions
Return the path to the generated firmware bundle
Read the firmware metadata from the specified firmware bundle
Print the API endpoint that's being used to communicate with the NervesHub server
Split up a string of comma-separated tags
Turn map keys into strings
Link to this section Functions
fetch_metadata_item(metadata, key)
firmware()
firmware() :: Path.t()
firmware() :: Path.t()
Return the path to the generated firmware bundle
get_metadata_item(metadata, key, default \\ nil)
metadata(firmware)
Read the firmware metadata from the specified firmware bundle
org(opts)
product(opts)
show_api_endpoint()
show_api_endpoint() :: :ok
show_api_endpoint() :: :ok
Print the API endpoint that's being used to communicate with the NervesHub server
split_tag_string(str)
Split up a string of comma-separated tags
Invalid tags raise.
iex> Mix.NervesHubCLI.Utils.split_tag_string("a, b, c") ["a", "b", "c"]
iex> Mix.NervesHubCLI.Utils.split_tag_string("a space tag, b, c") ** (RuntimeError) Tag 'a space tag' should not contain white space
iex> Mix.NervesHubCLI.Utils.split_tag_string("\"tag_in_quotes\"") ** (RuntimeError) Tag '"tag_in_quotes"' should not contain quotes
stringify(map)
Turn map keys into strings