From d4226c3c38008565539a77a373d63d68a7a65c36 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Wed, 14 Jul 2021 12:09:20 +0200 Subject: Add expicit container status sub-command --- client/go/.gitignore | 1 + client/go/src/github.com/vespa-engine/vespa/cmd/status.go | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'client') 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") -- cgit v1.2.3