nerves_hub_cli v0.10.1 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)
Specs
firmware()
Specs
firmware() :: Path.t()
Return the path to the generated firmware bundle
get_metadata_item(metadata, key, default \\ nil)
Specs
metadata(firmware)
Specs
Read the firmware metadata from the specified firmware bundle
org(opts)
Specs
product(opts)
Specs
show_api_endpoint()
Specs
show_api_endpoint() :: :ok
Print the API endpoint that's being used to communicate with the NervesHub server
split_tag_string(str)
Specs
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)
Specs
Turn map keys into strings