Documentation ¶
Overview ¶
Package cli provides an API to implement various commands for any kind of CONIKS command-line application/executable. Currently, cli supports Cobra-based CLI applications, but could be expanded to support other CLI commanders.
Index ¶
- func Execute(rootCmd *cobra.Command)
- func NewInitCommand(appName string, runFunc func(cmd *cobra.Command, args []string)) *cobra.Command
- func NewRootCommand(use, short, long string) *cobra.Command
- func NewRunCommand(appName, long string, runFunc func(cmd *cobra.Command, args []string)) *cobra.Command
- func NewVersionCommand(appName string) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute adds all subcommands (i.e. "init" and "run") to the RootCmd and sets their flags appropriately.
func NewInitCommand ¶
NewInitCommand constructs a new InitCommand for the given exectuable's appName and the runFunc implementing the initialization command.
func NewRootCommand ¶
NewRootCommand constructs a new RootCommand for the given exectuable's use, short and long descriptions.
func NewRunCommand ¶
func NewRunCommand(appName, long string, runFunc func(cmd *cobra.Command, args []string)) *cobra.Command
NewRunCommand constructs a new RunCommand for the given exectuable's appName and the runFunc implementing the main functionality run command.
func NewVersionCommand ¶
NewVersionCommand constructs a new VersionCommand for the given exectuable's appName.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Executable CONIKS registration proxy for Twitter usernames.
|
Executable CONIKS registration proxy for Twitter usernames. |
internal/cmd
Package cmd provides the CLI commands for a CONIKS account verification bot for Twitter accounts.
|
Package cmd provides the CLI commands for a CONIKS account verification bot for Twitter accounts. |
Executable CONIKS test client.
|
Executable CONIKS test client. |
Executable CONIKS key server.
|
Executable CONIKS key server. |
internal/cmd
Package cmd implements the CLI commands for a CONIKS key server.
|
Package cmd implements the CLI commands for a CONIKS key server. |