Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &command.Command{ Cobra: &cobra.Command{ Use: "keys", Aliases: []string{"key"}, Short: "List and manage Triton SSH Keys.", }, Setup: func(parent *command.Command) error { cmds := []*command.Command{ list.Cmd, get.Cmd, keyDelete.Cmd, create.Cmd, } for _, cmd := range cmds { cmd.Setup(cmd) parent.Cobra.AddCommand(cmd.Cobra) } { const ( key = config.KeySSHKeyFingerprint longName = "fingerprint" defaultValue = "" description = "SSH Key Fingerprint" ) flags := parent.Cobra.PersistentFlags() flags.String(longName, defaultValue, description) viper.BindPFlag(key, flags.Lookup(longName)) } { const ( key = config.KeySSHKeyName longName = "keyname" defaultValue = "" description = "SSH Key Name" ) flags := parent.Cobra.PersistentFlags() flags.String(longName, defaultValue, description) viper.BindPFlag(key, flags.Lookup(longName)) } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.