-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3008 cli implement end to end tests (#3221)
* test * inital commit * nit changes * fix test and linter * small changes * Added test for org switch * changes for output as csv * added test for service cmd * linter fix * test sleep * increased sleep time to test * tidy * test * added tests for user command * other commands added with helper * nit * removed unwanted comments * few changes * nit * updated printer functions * nit * review changes * nit * PR changes * nit * ci fix
- Loading branch information
1 parent
e1b2227
commit e5e7883
Showing
89 changed files
with
1,426 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package admin | ||
|
||
import ( | ||
"github.com/rilldata/rill/cli/pkg/config" | ||
"github.com/rilldata/rill/cli/pkg/cmdutil" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// AdminCmd represents the admin command | ||
func AdminCmd(cfg *config.Config) *cobra.Command { | ||
func AdminCmd(ch *cmdutil.Helper) *cobra.Command { | ||
adminCmd := &cobra.Command{ | ||
Use: "admin", | ||
Hidden: !cfg.IsDev(), | ||
Hidden: !ch.Config.IsDev(), | ||
Short: "Manage an admin server", | ||
} | ||
adminCmd.AddCommand(PingCmd(cfg)) | ||
adminCmd.AddCommand(StartCmd(cfg)) | ||
adminCmd.AddCommand(SwitchCmd(cfg)) | ||
adminCmd.AddCommand(PingCmd(ch)) | ||
adminCmd.AddCommand(StartCmd(ch)) | ||
adminCmd.AddCommand(SwitchCmd(ch)) | ||
return adminCmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.