()
| 26 | } |
| 27 | |
| 28 | func newAppCmd() *cobra.Command { |
| 29 | return &cobra.Command{ |
| 30 | Use: "new", |
| 31 | Short: "Add a new application", |
| 32 | Long: "Add a new application which can be used for further operations", |
| 33 | Example: heredoc.Doc(` |
| 34 | # Add a new application to the CLI |
| 35 | $ stream-cli config new |
| 36 | ? What is the name of your app? (eg. prod, staging, testing) testing |
| 37 | ? What is your access key? abcd1234efgh456 |
| 38 | ? What is your access secret key? *********************************** |
| 39 | ? (optional) Which base URL do you want to use for Chat? https://chat.stream-io-api.com |
| 40 | |
| 41 | Application successfully added. 🚀 |
| 42 | `), |
| 43 | RunE: func(cmd *cobra.Command, args []string) error { |
| 44 | return runQuestionnaire(cmd) |
| 45 | }, |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func removeAppCmd() *cobra.Command { |
| 50 | return &cobra.Command{ |
no test coverage detected