View Source Mix.NervesHubCLI.Utils (nerves_hub_cli v2.0.1)
Summary
Functions
Return the path to the generated firmware bundle
Read the firmware metadata from the specified firmware bundle
Takes the integer serial representation of a certificate serial number
and converts it to a hex string with :
separators to match typical
output from OpenSSL
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
Get User Access Token for use with the session
Functions
@spec firmware() :: Path.t()
Return the path to the generated firmware bundle
Read the firmware metadata from the specified firmware bundle
Takes the integer serial representation of a certificate serial number
and converts it to a hex string with :
separators to match typical
output from OpenSSL
@spec show_api_endpoint() :: :ok
Print the API endpoint that's being used to communicate with the NervesHub server
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
Turn map keys into strings
Get User Access Token for use with the session