MCPcopy Create free account
hub / github.com/Driver-C/tryssh / NewCreateCommand

Function NewCreateCommand

cmd/create/create.go:9–22  ·  view source on GitHub ↗

NewCreateCommand creates and returns the cobra command for creating configuration entries.

()

Source from the content-addressed store, hash-verified

7
8// NewCreateCommand creates and returns the cobra command for creating configuration entries.
9func NewCreateCommand() *cobra.Command {
10 cmd := &cobra.Command{
11 Use: "create [command]",
12 Short: "Create alternative username, port number, password, and login cache information",
13 Long: "Create alternative username, port number, password, and login cache information",
14 Aliases: []string{"cre", "crt", "add"},
15 }
16 cmd.AddCommand(NewUsersCommand())
17 cmd.AddCommand(NewPortsCommand())
18 cmd.AddCommand(NewPasswordsCommand())
19 cmd.AddCommand(NewCachesCommand())
20 cmd.AddCommand(NewKeysCommand())
21 return cmd
22}

Calls 5

NewUsersCommandFunction · 0.70
NewPortsCommandFunction · 0.70
NewPasswordsCommandFunction · 0.70
NewCachesCommandFunction · 0.70
NewKeysCommandFunction · 0.70