View Source Mix.NervesHubCLI.Shell (nerves_hub_cli v2.1.0)

Summary

Functions

do_render_error(errors)

@spec do_render_error(any()) :: :ok

error(output)

@spec error(IO.ANSI.ansidata()) :: :ok

info(output)

@spec info(IO.ANSI.ansidata()) :: :ok

password_get(prompt)

@spec password_get(String.t()) :: String.t()

prompt(output)

@spec prompt(String.t()) :: String.t()

raise(output)

@spec raise(String.t()) :: no_return()

render_error(errors, halt? \\ true)

@spec render_error([{:error, any()}] | {:error, any()}, boolean() | nil) ::
  :ok | no_return()

request_auth()

@spec request_auth() :: NervesHubCLI.API.Auth.t() | nil

request_keys(org, name)

request_keys(org, name, prompt)

request_password(prompt, int)

yes?(message)

@spec yes?(String.t()) :: boolean()