Skip to content
Snippets Groups Projects
Commit ac667bb9 authored by Dan Lorenc's avatar Dan Lorenc
Browse files

Change the CLI default to use https://api.rekor.dev.

parent 4db7e4d5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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...)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment