Skip to content

Commit b9d91d0

Browse files
authored
fix: Add tls flag to test command (#908)
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>
1 parent 0ee46b5 commit b9d91d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/commands/test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func NewTestCommand(ctx context.Context) *cobra.Command {
104104
"update",
105105
"junit-hide-message",
106106
"quiet",
107+
"tls",
107108
}
108109
for _, name := range flagNames {
109110
if err := viper.BindPFlag(name, cmd.Flags().Lookup(name)); err != nil {
@@ -185,6 +186,7 @@ func NewTestCommand(ctx context.Context) *cobra.Command {
185186
cmd.Flags().StringSliceP("data", "d", []string{}, "A list of paths from which data for the rego policies will be recursively loaded")
186187

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

189191
return &cmd
190192
}

0 commit comments

Comments
 (0)