struct
TandaCLI::Commands::Auth::Login
- TandaCLI::Commands::Auth::Login
- Struct
- Value
- Object
Included Modules
- Kebab::Parseable
Defined in:
tanda_cli/commands/auth/login.crConstant Summary
-
SCOPES =
"device leave personal roster timesheet me"
Constructors
Class Method Summary
- .__kebab_route_error(error : Kebab::Errors, stderr : IO) : Bool
- .__kebab_schema(parent_path : Array(String)) : Kebab::Schema::Command
-
.on_parse_error(error : Kebab::Errors, stderr : IO) : Bool
Override this on a command to customise how its parse errors are rendered when invoked through
self.run. -
.parse(args : Array(String), parent_path : Array(String) = [] of String) : self | Kebab::Help | Kebab::Errors
Parses
argsinto either an instance ofself, aKebab::Help(if the user asked for help), or one of theKebab::Errorsvariants. -
.run(args : Array(String), *forward_args, stdout : IO = STDOUT, stderr : IO = STDERR, **forward_kwargs) : Bool
Parses
argsand dispatches: callsinstance.run(*forward_args, **forward_kwargs)on success, writes help tostdout, writes errors tostderr. -
.schema(parent_path : Array(String) = [] of String) : Kebab::Schema::Command
Returns the command and its whole subtree as an immutable
Kebab::Schema::Command, derived at compile time.
Instance Method Summary
Constructor Detail
Class Method Detail
Override this on a command to customise how its parse errors are
rendered when invoked through self.run. Return true to suppress
kebab's default rendering, false to fall through to it.
Parses args into either an instance of self, a Kebab::Help
(if the user asked for help), or one of the Kebab::Errors
variants. Never raises.
Parses args and dispatches: calls instance.run(*forward_args, **forward_kwargs)
on success, writes help to stdout, writes errors to stderr.
Returns true on success or help, false on error.
Define self.on_parse_error on a command to customise how errors for that command are rendered.
Returns the command and its whole subtree as an immutable
Kebab::Schema::Command, derived at compile time. Pure and total,
never raises. parent_path prefixes the command path (used when a
parent forwards its path down to a child).