NewTrysshCommand creates and returns the root cobra command for the tryssh application.
()
| 16 | |
| 17 | // NewTrysshCommand creates and returns the root cobra command for the tryssh application. |
| 18 | func 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 | } |