From ac667bb99696f3b33912bb5d7415967f5507913e Mon Sep 17 00:00:00 2001 From: Dan Lorenc <dlorenc@google.com> Date: Wed, 20 Jan 2021 09:40:06 -0600 Subject: [PATCH] Change the CLI default to use https://api.rekor.dev. --- cmd/cli/app/root.go | 2 +- tests/util.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cli/app/root.go b/cmd/cli/app/root.go index 682595e..086880b 100644 --- a/cmd/cli/app/root.go +++ b/cmd/cli/app/root.go @@ -54,7 +54,7 @@ func init() { rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.rekor.yaml)") - rootCmd.PersistentFlags().Var(&urlFlag{url: "http://localhost:3000"}, "rekor_server", "Server address:port") + rootCmd.PersistentFlags().Var(&urlFlag{url: "https://api.rekor.dev"}, "rekor_server", "Server address:port") rootCmd.PersistentFlags().Var(&formatFlag{format: "default"}, "format", "Command output format") // these are bound here and not in PreRun so that all child commands can use them diff --git a/tests/util.go b/tests/util.go index 8ea6e0f..d9f9830 100644 --- a/tests/util.go +++ b/tests/util.go @@ -40,6 +40,7 @@ func run(t *testing.T, stdin, cmd string, arg ...string) string { func runCli(t *testing.T, arg ...string) string { t.Helper() + arg = append(arg, "--rekor_server=http://localhost:3000") return run(t, "", cli, arg...) } -- GitLab