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

Function NewTrysshCommand

cmd/cmd.go:18–35  ·  view source on GitHub ↗

NewTrysshCommand creates and returns the root cobra command for the tryssh application.

()

Source from the content-addressed store, hash-verified

16
17// NewTrysshCommand creates and returns the root cobra command for the tryssh application.
18func NewTrysshCommand() *cobra.Command {
19 rootCmd := &cobra.Command{
20 Use: "tryssh [command]",
21 Short: "A command line ssh terminal tool.",
22 Long: "A command line ssh terminal tool.",
23 }
24 rootCmd.AddCommand(version.NewVersionCommand())
25 rootCmd.AddCommand(ssh.NewSSHCommand())
26 rootCmd.AddCommand(scp.NewScpCommand())
27 rootCmd.AddCommand(alias.NewAliasCommand())
28 rootCmd.AddCommand(create.NewCreateCommand())
29 rootCmd.AddCommand(delete.NewDeleteCommand())
30 rootCmd.AddCommand(get.NewGetCommand())
31 rootCmd.AddCommand(prune.NewPruneCommand())
32 rootCmd.AddCommand(encrypt.NewEncryptCommand())
33 rootCmd.CompletionOptions.DisableDefaultCmd = true
34 return rootCmd
35}

Calls 9

NewVersionCommandFunction · 0.92
NewSSHCommandFunction · 0.92
NewScpCommandFunction · 0.92
NewAliasCommandFunction · 0.92
NewCreateCommandFunction · 0.92
NewDeleteCommandFunction · 0.92
NewGetCommandFunction · 0.92
NewPruneCommandFunction · 0.92
NewEncryptCommandFunction · 0.92