Skip to content

Commit

Permalink
fix: Add tls flag to test command (#908)
Browse files Browse the repository at this point in the history
The pull command uses TLS by default by way of the value set for the `tls` flag.  This change updates the `--update` flag on the test command to use TLS by default to align with the pull command.

Signed-off-by: Matt Snyder <msnyder@repay.com>
  • Loading branch information
oblogic7 committed Feb 1, 2024
1 parent 0ee46b5 commit b9d91d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/commands/test.go
Expand Up @@ -104,6 +104,7 @@ func NewTestCommand(ctx context.Context) *cobra.Command {
"update",
"junit-hide-message",
"quiet",
"tls",
}
for _, name := range flagNames {
if err := viper.BindPFlag(name, cmd.Flags().Lookup(name)); err != nil {
Expand Down Expand Up @@ -185,6 +186,7 @@ func NewTestCommand(ctx context.Context) *cobra.Command {
cmd.Flags().StringSliceP("data", "d", []string{}, "A list of paths from which data for the rego policies will be recursively loaded")

cmd.Flags().StringSlice("proto-file-dirs", []string{}, "A list of directories containing Protocol Buffer definitions")
cmd.Flags().Bool("tls", true, "Use TLS to access the registry")

return &cmd
}

0 comments on commit b9d91d0

Please sign in to comment.