diff --git a/cmd/auth/login_test.go b/cmd/auth/login_test.go index 4756520..8e44c14 100644 --- a/cmd/auth/login_test.go +++ b/cmd/auth/login_test.go @@ -42,7 +42,7 @@ func TestLoginCmd_BrowserFlow(t *testing.T) { t.Error("expected BrowserLogin to be called") } out := buf.String() - if !strings.Contains(out, "app.keeperhub.io") { + if !strings.Contains(out, "app.keeperhub.com") { t.Errorf("expected host in output, got: %q", out) } } diff --git a/cmd/config/config.go b/cmd/config/config.go index 187ec4e..66e5341 100644 --- a/cmd/config/config.go +++ b/cmd/config/config.go @@ -13,7 +13,7 @@ func NewConfigCmd(f *cmdutil.Factory) *cobra.Command { kh config ls # Set the default host - kh config set default_host app.keeperhub.io`, + kh config set default_host app.keeperhub.com`, } cmd.AddCommand(NewSetCmd(f)) diff --git a/cmd/config/set.go b/cmd/config/set.go index 9c43cc1..f2cbc0f 100644 --- a/cmd/config/set.go +++ b/cmd/config/set.go @@ -19,7 +19,7 @@ all valid keys. See also: kh config list, kh config get`, Example: ` # Set the default host - kh config set default_host app.keeperhub.io + kh config set default_host app.keeperhub.com # Point CLI at a self-hosted instance kh config set default_host https://kh.mycompany.io`, diff --git a/cmd/doctor/doctor.go b/cmd/doctor/doctor.go index 41a58be..da64b27 100644 --- a/cmd/doctor/doctor.go +++ b/cmd/doctor/doctor.go @@ -134,7 +134,7 @@ func getHost(f *cmdutil.Factory) (string, error) { } host := cfg.DefaultHost if host == "" { - host = "app.keeperhub.io" + host = "app.keeperhub.com" } return host, nil } diff --git a/cmd/help/topics.go b/cmd/help/topics.go index 84b1d31..7711edd 100644 --- a/cmd/help/topics.go +++ b/cmd/help/topics.go @@ -9,7 +9,7 @@ func NewEnvironmentTopic() *cobra.Command { Use: "environment", Short: "Environment variables used by kh", Long: `KH_HOST - Override the KeeperHub API host. Default: app.keeperhub.io + Override the KeeperHub API host. Default: app.keeperhub.com Example: KH_HOST=https://kh.mycompany.io kh workflow list KH_API_KEY diff --git a/cmd/root.go b/cmd/root.go index 989c755..3853220 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -38,7 +38,7 @@ func NewRootCmd(f *cmdutil.Factory) *cobra.Command { cmd.PersistentFlags().String("jq", "", "Filter JSON output with a jq expression") cmd.PersistentFlags().BoolP("yes", "y", false, "Skip confirmation prompts") cmd.PersistentFlags().Bool("no-color", false, "Disable color output") - cmd.PersistentFlags().StringP("host", "H", "", "KeeperHub host (default: app.keeperhub.io)") + cmd.PersistentFlags().StringP("host", "H", "", "KeeperHub host (default: app.keeperhub.com)") cmd.AddCommand(action.NewActionCmd(f)) cmd.AddCommand(auth.NewAuthCmd(f)) diff --git a/cmd/run/cancel.go b/cmd/run/cancel.go index 0c3f135..71d4edf 100644 --- a/cmd/run/cancel.go +++ b/cmd/run/cancel.go @@ -48,7 +48,7 @@ func NewCancelCmd(f *cmdutil.Factory) *cobra.Command { host = cfg.DefaultHost } if host == "" { - host = "app.keeperhub.io" + host = "app.keeperhub.com" } // Confirmation: skip if --yes or non-TTY (auto-proceed in non-interactive mode). diff --git a/cmd/run/logs.go b/cmd/run/logs.go index 061001b..7fc88dd 100644 --- a/cmd/run/logs.go +++ b/cmd/run/logs.go @@ -94,7 +94,7 @@ func NewLogsCmd(f *cmdutil.Factory) *cobra.Command { host = cfg.DefaultHost } if host == "" { - host = "app.keeperhub.io" + host = "app.keeperhub.com" } url := khhttp.BuildBaseURL(host) + "/api/workflows/executions/" + runID + "/logs" diff --git a/cmd/run/status.go b/cmd/run/status.go index dbc7a8a..fe3439b 100644 --- a/cmd/run/status.go +++ b/cmd/run/status.go @@ -78,7 +78,7 @@ See also: kh r l, kh r cancel, kh wf run`, host = cfg.DefaultHost } if host == "" { - host = "app.keeperhub.io" + host = "app.keeperhub.com" } watch, _ := cmd.Flags().GetBool("watch") diff --git a/docs/kh.md b/docs/kh.md index 1b9283b..073ac5a 100644 --- a/docs/kh.md +++ b/docs/kh.md @@ -6,7 +6,7 @@ KeeperHub CLI ``` -h, --help help for kh - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_action.md b/docs/kh_action.md index 9f0b77a..3759fb3 100644 --- a/docs/kh_action.md +++ b/docs/kh_action.md @@ -23,7 +23,7 @@ Browse available actions ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output -y, --yes Skip confirmation prompts ``` diff --git a/docs/kh_action_get.md b/docs/kh_action_get.md index fa72fb2..03bb082 100644 --- a/docs/kh_action_get.md +++ b/docs/kh_action_get.md @@ -25,7 +25,7 @@ kh action get [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_action_list.md b/docs/kh_action_list.md index 99ff45a..45c4544 100644 --- a/docs/kh_action_list.md +++ b/docs/kh_action_list.md @@ -26,7 +26,7 @@ kh action list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_auth.md b/docs/kh_auth.md index b3f0ea1..f1c3bd8 100644 --- a/docs/kh_auth.md +++ b/docs/kh_auth.md @@ -21,7 +21,7 @@ Authenticate with KeeperHub ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_auth_login.md b/docs/kh_auth_login.md index a69e13f..25f1dae 100644 --- a/docs/kh_auth_login.md +++ b/docs/kh_auth_login.md @@ -35,7 +35,7 @@ kh auth login [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_auth_logout.md b/docs/kh_auth_logout.md index cd0531b..9815f91 100644 --- a/docs/kh_auth_logout.md +++ b/docs/kh_auth_logout.md @@ -32,7 +32,7 @@ kh auth logout [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_auth_status.md b/docs/kh_auth_status.md index e4b23ce..f5e263d 100644 --- a/docs/kh_auth_status.md +++ b/docs/kh_auth_status.md @@ -25,7 +25,7 @@ kh auth status [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_billing.md b/docs/kh_billing.md index b061b48..99020dc 100644 --- a/docs/kh_billing.md +++ b/docs/kh_billing.md @@ -23,7 +23,7 @@ View billing and usage ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output -y, --yes Skip confirmation prompts ``` diff --git a/docs/kh_billing_status.md b/docs/kh_billing_status.md index b4881e9..f60d7bc 100644 --- a/docs/kh_billing_status.md +++ b/docs/kh_billing_status.md @@ -25,7 +25,7 @@ kh billing status [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_billing_usage.md b/docs/kh_billing_usage.md index bfdbff1..2835e39 100644 --- a/docs/kh_billing_usage.md +++ b/docs/kh_billing_usage.md @@ -26,7 +26,7 @@ kh billing usage [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_completion.md b/docs/kh_completion.md index 8b038d3..2b2719f 100644 --- a/docs/kh_completion.md +++ b/docs/kh_completion.md @@ -32,7 +32,7 @@ kh completion [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_config.md b/docs/kh_config.md index e5aefac..ba5484c 100644 --- a/docs/kh_config.md +++ b/docs/kh_config.md @@ -9,7 +9,7 @@ Manage CLI configuration kh config ls # Set the default host - kh config set default_host app.keeperhub.io + kh config set default_host app.keeperhub.com ``` ### Options @@ -21,7 +21,7 @@ Manage CLI configuration ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_config_get.md b/docs/kh_config_get.md index c9367c3..6cb7e64 100644 --- a/docs/kh_config_get.md +++ b/docs/kh_config_get.md @@ -22,7 +22,7 @@ kh config get [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_config_list.md b/docs/kh_config_list.md index 109af8d..e565f5a 100644 --- a/docs/kh_config_list.md +++ b/docs/kh_config_list.md @@ -22,7 +22,7 @@ kh config list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_config_set.md b/docs/kh_config_set.md index 02a557a..742d3ce 100644 --- a/docs/kh_config_set.md +++ b/docs/kh_config_set.md @@ -18,7 +18,7 @@ kh config set [flags] ``` # Set the default host - kh config set default_host app.keeperhub.io + kh config set default_host app.keeperhub.com # Point CLI at a self-hosted instance kh config set default_host https://kh.mycompany.io @@ -33,7 +33,7 @@ kh config set [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_doctor.md b/docs/kh_doctor.md index ee4e67f..3a866eb 100644 --- a/docs/kh_doctor.md +++ b/docs/kh_doctor.md @@ -33,7 +33,7 @@ kh doctor [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_execute.md b/docs/kh_execute.md index 239f4cb..5d7cf55 100644 --- a/docs/kh_execute.md +++ b/docs/kh_execute.md @@ -29,7 +29,7 @@ See also: kh r st, kh wf run ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_execute_contract-call.md b/docs/kh_execute_contract-call.md index 78e8599..78d92d9 100644 --- a/docs/kh_execute_contract-call.md +++ b/docs/kh_execute_contract-call.md @@ -32,7 +32,7 @@ kh execute contract-call [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_execute_status.md b/docs/kh_execute_status.md index cbfbf05..3cb13a9 100644 --- a/docs/kh_execute_status.md +++ b/docs/kh_execute_status.md @@ -33,7 +33,7 @@ kh execute status [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_execute_transfer.md b/docs/kh_execute_transfer.md index 97fbc10..4d35335 100644 --- a/docs/kh_execute_transfer.md +++ b/docs/kh_execute_transfer.md @@ -32,7 +32,7 @@ kh execute transfer [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_org.md b/docs/kh_org.md index bc09651..fdd6a71 100644 --- a/docs/kh_org.md +++ b/docs/kh_org.md @@ -23,7 +23,7 @@ Manage organizations ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output -y, --yes Skip confirmation prompts ``` diff --git a/docs/kh_org_list.md b/docs/kh_org_list.md index 3182d55..e437c02 100644 --- a/docs/kh_org_list.md +++ b/docs/kh_org_list.md @@ -25,7 +25,7 @@ kh org list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_org_members.md b/docs/kh_org_members.md index 8f4d53a..58305b0 100644 --- a/docs/kh_org_members.md +++ b/docs/kh_org_members.md @@ -25,7 +25,7 @@ kh org members [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_org_switch.md b/docs/kh_org_switch.md index b053b03..253652c 100644 --- a/docs/kh_org_switch.md +++ b/docs/kh_org_switch.md @@ -25,7 +25,7 @@ kh org switch [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_project.md b/docs/kh_project.md index 01b4c31..5b5b11b 100644 --- a/docs/kh_project.md +++ b/docs/kh_project.md @@ -24,7 +24,7 @@ Manage projects ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output ``` diff --git a/docs/kh_project_create.md b/docs/kh_project_create.md index fda50ae..09c1792 100644 --- a/docs/kh_project_create.md +++ b/docs/kh_project_create.md @@ -26,7 +26,7 @@ kh project create [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_project_delete.md b/docs/kh_project_delete.md index a54301d..5294613 100644 --- a/docs/kh_project_delete.md +++ b/docs/kh_project_delete.md @@ -25,7 +25,7 @@ kh project delete [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_project_get.md b/docs/kh_project_get.md index a9a2028..3d6e44e 100644 --- a/docs/kh_project_get.md +++ b/docs/kh_project_get.md @@ -25,7 +25,7 @@ kh project get [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_project_list.md b/docs/kh_project_list.md index 44f0a1c..b7451d9 100644 --- a/docs/kh_project_list.md +++ b/docs/kh_project_list.md @@ -26,7 +26,7 @@ kh project list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_protocol.md b/docs/kh_protocol.md index 6a4be1b..fe47f66 100644 --- a/docs/kh_protocol.md +++ b/docs/kh_protocol.md @@ -21,7 +21,7 @@ Browse blockchain protocols ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_protocol_get.md b/docs/kh_protocol_get.md index 7ef7ebd..1156bbc 100644 --- a/docs/kh_protocol_get.md +++ b/docs/kh_protocol_get.md @@ -25,7 +25,7 @@ kh protocol get [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_protocol_list.md b/docs/kh_protocol_list.md index 599febc..63f21e9 100644 --- a/docs/kh_protocol_list.md +++ b/docs/kh_protocol_list.md @@ -26,7 +26,7 @@ kh protocol list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_run.md b/docs/kh_run.md index 6573a3e..e8e3eba 100644 --- a/docs/kh_run.md +++ b/docs/kh_run.md @@ -21,7 +21,7 @@ Monitor workflow runs ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_run_cancel.md b/docs/kh_run_cancel.md index 06ca02c..b218799 100644 --- a/docs/kh_run_cancel.md +++ b/docs/kh_run_cancel.md @@ -25,7 +25,7 @@ kh run cancel [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_run_logs.md b/docs/kh_run_logs.md index cd43ea3..3278b24 100644 --- a/docs/kh_run_logs.md +++ b/docs/kh_run_logs.md @@ -25,7 +25,7 @@ kh run logs [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_run_status.md b/docs/kh_run_status.md index aafba12..88d0d0e 100644 --- a/docs/kh_run_status.md +++ b/docs/kh_run_status.md @@ -34,7 +34,7 @@ kh run status [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_serve.md b/docs/kh_serve.md index 73daeb5..5f8444e 100644 --- a/docs/kh_serve.md +++ b/docs/kh_serve.md @@ -34,7 +34,7 @@ kh serve [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_tag.md b/docs/kh_tag.md index a4a5b93..7fac773 100644 --- a/docs/kh_tag.md +++ b/docs/kh_tag.md @@ -24,7 +24,7 @@ Manage tags ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output ``` diff --git a/docs/kh_tag_create.md b/docs/kh_tag_create.md index a0c0556..60bfb38 100644 --- a/docs/kh_tag_create.md +++ b/docs/kh_tag_create.md @@ -26,7 +26,7 @@ kh tag create [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_tag_delete.md b/docs/kh_tag_delete.md index 18e55fc..ba4ba39 100644 --- a/docs/kh_tag_delete.md +++ b/docs/kh_tag_delete.md @@ -25,7 +25,7 @@ kh tag delete [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_tag_get.md b/docs/kh_tag_get.md index 0084e5b..b6b8af8 100644 --- a/docs/kh_tag_get.md +++ b/docs/kh_tag_get.md @@ -25,7 +25,7 @@ kh tag get [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_tag_list.md b/docs/kh_tag_list.md index 046f710..cb0c95a 100644 --- a/docs/kh_tag_list.md +++ b/docs/kh_tag_list.md @@ -26,7 +26,7 @@ kh tag list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_template.md b/docs/kh_template.md index a181894..78a7ee8 100644 --- a/docs/kh_template.md +++ b/docs/kh_template.md @@ -23,7 +23,7 @@ Manage workflow templates ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output -y, --yes Skip confirmation prompts ``` diff --git a/docs/kh_template_deploy.md b/docs/kh_template_deploy.md index 1b7c365..991a8bf 100644 --- a/docs/kh_template_deploy.md +++ b/docs/kh_template_deploy.md @@ -26,7 +26,7 @@ kh template deploy [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_template_list.md b/docs/kh_template_list.md index 32a3930..8814252 100644 --- a/docs/kh_template_list.md +++ b/docs/kh_template_list.md @@ -25,7 +25,7 @@ kh template list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_update.md b/docs/kh_update.md index 114a14d..68702cb 100644 --- a/docs/kh_update.md +++ b/docs/kh_update.md @@ -30,7 +30,7 @@ kh update [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_version.md b/docs/kh_version.md index e3d71f8..0edf2c7 100644 --- a/docs/kh_version.md +++ b/docs/kh_version.md @@ -22,7 +22,7 @@ kh version [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_wallet.md b/docs/kh_wallet.md index 98e949f..d6e4f24 100644 --- a/docs/kh_wallet.md +++ b/docs/kh_wallet.md @@ -23,7 +23,7 @@ Manage wallets ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output -y, --yes Skip confirmation prompts ``` diff --git a/docs/kh_wallet_balance.md b/docs/kh_wallet_balance.md index ea4bee7..4857ab1 100644 --- a/docs/kh_wallet_balance.md +++ b/docs/kh_wallet_balance.md @@ -26,7 +26,7 @@ kh wallet balance [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_wallet_tokens.md b/docs/kh_wallet_tokens.md index e3dce97..c405cbb 100644 --- a/docs/kh_wallet_tokens.md +++ b/docs/kh_wallet_tokens.md @@ -27,7 +27,7 @@ kh wallet tokens [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_workflow.md b/docs/kh_workflow.md index 80cdd0d..471d3fe 100644 --- a/docs/kh_workflow.md +++ b/docs/kh_workflow.md @@ -23,7 +23,7 @@ Manage workflows ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --no-color Disable color output -y, --yes Skip confirmation prompts ``` diff --git a/docs/kh_workflow_get.md b/docs/kh_workflow_get.md index 63b5b22..5286f3d 100644 --- a/docs/kh_workflow_get.md +++ b/docs/kh_workflow_get.md @@ -25,7 +25,7 @@ kh workflow get [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_workflow_go-live.md b/docs/kh_workflow_go-live.md index a86e0f8..5158bfb 100644 --- a/docs/kh_workflow_go-live.md +++ b/docs/kh_workflow_go-live.md @@ -27,7 +27,7 @@ kh workflow go-live [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_workflow_list.md b/docs/kh_workflow_list.md index 4026a3b..9c02879 100644 --- a/docs/kh_workflow_list.md +++ b/docs/kh_workflow_list.md @@ -26,7 +26,7 @@ kh workflow list [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_workflow_pause.md b/docs/kh_workflow_pause.md index 73dcbc5..acb8f04 100644 --- a/docs/kh_workflow_pause.md +++ b/docs/kh_workflow_pause.md @@ -26,7 +26,7 @@ kh workflow pause [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/docs/kh_workflow_run.md b/docs/kh_workflow_run.md index b8d0dd3..10c7b24 100644 --- a/docs/kh_workflow_run.md +++ b/docs/kh_workflow_run.md @@ -35,7 +35,7 @@ kh workflow run [flags] ### Options inherited from parent commands ``` - -H, --host string KeeperHub host (default: app.keeperhub.io) + -H, --host string KeeperHub host (default: app.keeperhub.com) --jq string Filter JSON output with a jq expression --json Output as JSON --no-color Disable color output diff --git a/internal/auth/keyring_test.go b/internal/auth/keyring_test.go index f95688c..1dcd78e 100644 --- a/internal/auth/keyring_test.go +++ b/internal/auth/keyring_test.go @@ -32,10 +32,10 @@ func overrideKeyring(t *testing.T) { func TestSetGetToken(t *testing.T) { overrideKeyring(t) - err := SetToken("app.keeperhub.io", "tok_abc123") + err := SetToken("app.keeperhub.com", "tok_abc123") require.NoError(t, err) - got, err := GetToken("app.keeperhub.io") + got, err := GetToken("app.keeperhub.com") require.NoError(t, err) require.Equal(t, "tok_abc123", got) } @@ -51,11 +51,11 @@ func TestGetToken_Missing(t *testing.T) { func TestDeleteToken(t *testing.T) { overrideKeyring(t) - require.NoError(t, SetToken("app.keeperhub.io", "tok_xyz")) + require.NoError(t, SetToken("app.keeperhub.com", "tok_xyz")) - require.NoError(t, DeleteToken("app.keeperhub.io")) + require.NoError(t, DeleteToken("app.keeperhub.com")) - got, err := GetToken("app.keeperhub.io") + got, err := GetToken("app.keeperhub.com") require.NoError(t, err) require.Equal(t, "", got) } diff --git a/internal/auth/oauth_test.go b/internal/auth/oauth_test.go index 1636bf1..2b08336 100644 --- a/internal/auth/oauth_test.go +++ b/internal/auth/oauth_test.go @@ -46,7 +46,7 @@ func TestBrowserLogin_CapturesToken(t *testing.T) { errCh := make(chan error, 1) go func() { - tok, err := BrowserLogin("app.keeperhub.io", ios) + tok, err := BrowserLogin("app.keeperhub.com", ios) if err != nil { errCh <- err return @@ -79,7 +79,7 @@ func TestBrowserLogin_CapturesToken(t *testing.T) { t.Fatal("timed out waiting for BrowserLogin to return") } - stored, err := GetToken("app.keeperhub.io") + stored, err := GetToken("app.keeperhub.com") require.NoError(t, err) require.Equal(t, "test_token_123", stored) } @@ -92,7 +92,7 @@ func TestBrowserLogin_NoTokenInCallback(t *testing.T) { errCh := make(chan error, 1) go func() { - _, err := BrowserLogin("app.keeperhub.io", ios) + _, err := BrowserLogin("app.keeperhub.com", ios) errCh <- err }() diff --git a/internal/auth/resolver_test.go b/internal/auth/resolver_test.go index 0531c93..8e9e17d 100644 --- a/internal/auth/resolver_test.go +++ b/internal/auth/resolver_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" ) -const testHost = "app.keeperhub.io" +const testHost = "app.keeperhub.com" func setupEmptyKeyring(t *testing.T) { t.Helper() diff --git a/internal/config/config.go b/internal/config/config.go index 826065c..d977a43 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -19,7 +19,7 @@ type Config struct { func DefaultConfig() Config { return Config{ ConfigVersion: "1", - DefaultHost: "app.keeperhub.io", + DefaultHost: "app.keeperhub.com", } } diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 39cee41..b5ee95f 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -13,8 +13,8 @@ func TestDefaultConfig(t *testing.T) { if cfg.ConfigVersion != "1" { t.Errorf("ConfigVersion: got %q, want %q", cfg.ConfigVersion, "1") } - if cfg.DefaultHost != "app.keeperhub.io" { - t.Errorf("DefaultHost: got %q, want %q", cfg.DefaultHost, "app.keeperhub.io") + if cfg.DefaultHost != "app.keeperhub.com" { + t.Errorf("DefaultHost: got %q, want %q", cfg.DefaultHost, "app.keeperhub.com") } } diff --git a/internal/config/hosts.go b/internal/config/hosts.go index c387966..24c4b71 100644 --- a/internal/config/hosts.go +++ b/internal/config/hosts.go @@ -9,7 +9,7 @@ import ( "gopkg.in/yaml.v3" ) -const defaultHost = "app.keeperhub.io" +const defaultHost = "app.keeperhub.com" // HostConfig holds per-host authentication and connection details. type HostConfig struct { @@ -65,7 +65,7 @@ func WriteHosts(cfg HostsConfig) error { } // ActiveHost resolves the active host using the priority chain: -// flagHost > envHost > h.DefaultHost > config.yml DefaultHost > "app.keeperhub.io" +// flagHost > envHost > h.DefaultHost > config.yml DefaultHost > "app.keeperhub.com" func (h *HostsConfig) ActiveHost(flagHost, envHost string) string { if flagHost != "" { return flagHost diff --git a/internal/config/hosts_test.go b/internal/config/hosts_test.go index 3247a0a..8b79a64 100644 --- a/internal/config/hosts_test.go +++ b/internal/config/hosts_test.go @@ -16,8 +16,8 @@ func TestActiveHostFallback(t *testing.T) { h := config.HostsConfig{} got := h.ActiveHost("", "") - if got != "app.keeperhub.io" { - t.Errorf("ActiveHost fallback: got %q, want %q", got, "app.keeperhub.io") + if got != "app.keeperhub.com" { + t.Errorf("ActiveHost fallback: got %q, want %q", got, "app.keeperhub.com") } } @@ -102,11 +102,11 @@ func TestReadHostsMissingFile(t *testing.T) { func TestHostEntryLookup(t *testing.T) { h := config.HostsConfig{ Hosts: map[string]config.HostConfig{ - "app.keeperhub.io": {User: "user@example.com"}, + "app.keeperhub.com": {User: "user@example.com"}, }, } - entry, ok := h.HostEntry("app.keeperhub.io") + entry, ok := h.HostEntry("app.keeperhub.com") if !ok { t.Fatal("expected to find host entry") } diff --git a/internal/http/url_test.go b/internal/http/url_test.go index 96411b6..9bfb4f7 100644 --- a/internal/http/url_test.go +++ b/internal/http/url_test.go @@ -25,13 +25,13 @@ func TestBuildBaseURL(t *testing.T) { }, { name: "https scheme preserved unchanged", - input: "https://app.keeperhub.io", - want: "https://app.keeperhub.io", + input: "https://app.keeperhub.com", + want: "https://app.keeperhub.com", }, { name: "bare domain adds https scheme", - input: "app.keeperhub.io", - want: "https://app.keeperhub.io", + input: "app.keeperhub.com", + want: "https://app.keeperhub.com", }, { name: "bare hostname trailing slash stripped", diff --git a/tests/integration/auth_test.go b/tests/integration/auth_test.go index 327d582..5301338 100644 --- a/tests/integration/auth_test.go +++ b/tests/integration/auth_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -const stagingHost = "app.keeperhub.io" +const stagingHost = "app.keeperhub.com" // TestAuthLoginFlow verifies that a token can be resolved for the staging host. // Skips if KH_TEST_EMAIL and KH_TEST_PASSWORD are not set.