diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-07-14 12:09:20 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-07-14 12:09:20 +0200 |
commit | d4226c3c38008565539a77a373d63d68a7a65c36 (patch) | |
tree | fc044705833bd27cd357f646720d1d27be37e365 /client | |
parent | 744054a9cf21f896bb8a62d46082c6c25336a880 (diff) |
Add expicit container status sub-command
Diffstat (limited to 'client')
-rw-r--r-- | client/go/.gitignore | 1 | ||||
-rw-r--r-- | client/go/src/github.com/vespa-engine/vespa/cmd/status.go | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/client/go/.gitignore b/client/go/.gitignore index 2cdda645266..2275a3bddb7 100644 --- a/client/go/.gitignore +++ b/client/go/.gitignore @@ -1,2 +1,3 @@ +bin/ pkg/ *.sum diff --git a/client/go/src/github.com/vespa-engine/vespa/cmd/status.go b/client/go/src/github.com/vespa-engine/vespa/cmd/status.go index 6225533a8b8..28be369e244 100644 --- a/client/go/src/github.com/vespa-engine/vespa/cmd/status.go +++ b/client/go/src/github.com/vespa-engine/vespa/cmd/status.go @@ -11,12 +11,22 @@ import ( func init() { rootCmd.AddCommand(statusCmd) + statusCmd.AddCommand(statusContainerCmd) statusCmd.AddCommand(statusConfigServerCmd) } var statusCmd = &cobra.Command{ Use: "status", - Short: "Verifies that your Vespa endpoint is ready to use", + Short: "Verifies that your Vespa endpoint is ready to use (container by default)", + Long: `TODO`, + Run: func(cmd *cobra.Command, args []string) { + status("http://127.0.0.1:8080", "container") + }, +} + +var statusContainerCmd = &cobra.Command{ + Use: "container", + Short: "Verifies that your Vespa container endpoint is ready [Default]", Long: `TODO`, Run: func(cmd *cobra.Command, args []string) { status("http://127.0.0.1:8080", "container") |