Skip to content

Commit 6a58aa2

Browse files
committed
use global debug flag
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
1 parent 0c16319 commit 6a58aa2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/cli/cmd/policy_develop_eval.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ func newPolicyDevelopEvalCmd() *cobra.Command {
3333
policyPath string
3434
inputs []string
3535
allowedHostnames []string
36-
debug bool
3736
)
3837

3938
cmd := &cobra.Command{
@@ -53,7 +52,7 @@ evaluates the policy against the provided material or attestation.`,
5352
PolicyPath: policyPath,
5453
Inputs: parseKeyValue(inputs),
5554
AllowedHostnames: allowedHostnames,
56-
Debug: debug,
55+
Debug: flagDebug,
5756
}
5857

5958
policyEval, err := action.NewPolicyEval(opts, ActionOpts)
@@ -77,7 +76,6 @@ evaluates the policy against the provided material or attestation.`,
7776
cmd.Flags().StringVarP(&policyPath, "policy", "p", "policy.yaml", "Policy reference (./my-policy.yaml, https://my-domain.com/my-policy.yaml, chainloop://my-stored-policy)")
7877
cmd.Flags().StringArrayVar(&inputs, "input", []string{}, "Key-value pairs of policy inputs (key=value)")
7978
cmd.Flags().StringSliceVar(&allowedHostnames, "allowed-hostnames", []string{}, "Additional hostnames allowed for http.send requests in policies")
80-
cmd.Flags().BoolVarP(&debug, "debug", "", false, "Include detailed evaluation inputs/outputs in JSON output and enable verbose logging")
8179

8280
return cmd
8381
}

0 commit comments

Comments
 (0)