|
1 | | -// Copyright 2022 RelationalAI, Inc. |
| 1 | +// Copyright 2022-2023 RelationalAI, Inc. |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -36,7 +36,7 @@ func addCommands(root *cobra.Command) { |
36 | 36 |
|
37 | 37 | cmd = &cobra.Command{ |
38 | 38 | Use: "delete-database database", |
39 | | - Short: "Delete a database databaase", |
| 39 | + Short: "Delete a database", |
40 | 40 | Args: cobra.ExactArgs(1), |
41 | 41 | Run: deleteDatabase} |
42 | 42 | root.AddCommand(cmd) |
@@ -290,8 +290,43 @@ func addCommands(root *cobra.Command) { |
290 | 290 | cmd.Flags().StringArray("role", nil, "user roles") |
291 | 291 | root.AddCommand(cmd) |
292 | 292 |
|
293 | | - // Misc |
| 293 | + // Integrations |
| 294 | + cmd = &cobra.Command{ |
| 295 | + Use: "create-snowflake-integration name", |
| 296 | + Short: "Create a Snowflake integration", |
| 297 | + Args: cobra.ExactArgs(1), |
| 298 | + Run: createSnowflakeIntegration} |
| 299 | + cmd.Flags().String("account", "", "Snowflake account") |
| 300 | + cmd.Flags().String("admin-username", "", "admin username") |
| 301 | + cmd.Flags().String("admin-password", "", "admin password") |
| 302 | + cmd.Flags().String("proxy-username", "", "proxy username") |
| 303 | + cmd.Flags().String("proxy-password", "", "proxy password") |
| 304 | + root.AddCommand(cmd) |
| 305 | + |
| 306 | + cmd = &cobra.Command{ |
| 307 | + Use: "delete-snowflake-integration name", |
| 308 | + Short: "Delete a Snowflake integration", |
| 309 | + Args: cobra.ExactArgs(1), |
| 310 | + Run: deleteSnowflakeIntegration} |
| 311 | + cmd.Flags().String("admin-username", "", "admin username") |
| 312 | + cmd.Flags().String("admin-password", "", "admin password") |
| 313 | + root.AddCommand(cmd) |
294 | 314 |
|
| 315 | + cmd = &cobra.Command{ |
| 316 | + Use: "get-snowflake-integration name", |
| 317 | + Short: "Get information about the given Snowflake integration", |
| 318 | + Args: cobra.ExactArgs(1), |
| 319 | + Run: getSnowflakeIntegration} |
| 320 | + root.AddCommand(cmd) |
| 321 | + |
| 322 | + cmd = &cobra.Command{ |
| 323 | + Use: "list-snowflake-integrations", |
| 324 | + Short: "List all Snowflake integrations", |
| 325 | + Args: cobra.ExactArgs(0), |
| 326 | + Run: listSnowflakeIntegrations} |
| 327 | + root.AddCommand(cmd) |
| 328 | + |
| 329 | + // Misc |
295 | 330 | cmd = &cobra.Command{ |
296 | 331 | Use: "get-access-token", |
297 | 332 | Short: "Get OAuth access token", |
|
0 commit comments