cli

package
v0.0.0-...-11acf48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2018 License: BSD-3-Clause Imports: 4 Imported by: 3

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(rootCmd *cobra.Command)

Execute adds all subcommands (i.e. "init" and "run") to the RootCmd and sets their flags appropriately.

func NewInitCommand

func NewInitCommand(appName string, runFunc func(cmd *cobra.Command, args []string)) *cobra.Command

NewInitCommand constructs a new InitCommand for the given exectuable's appName and the runFunc implementing the initialization command.

func NewRootCommand

func NewRootCommand(use, short, long string) *cobra.Command

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

func NewVersionCommand(appName string) *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL