diff --git a/commands/policy/json_schema.go b/commands/policy/json_schema.go deleted file mode 100644 index 8292f9e62..000000000 --- a/commands/policy/json_schema.go +++ /dev/null @@ -1,23 +0,0 @@ -package policy - -import ( - "github.com/pkg/errors" - "github.com/spf13/cobra" -) - -func jsonSchemaCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "json-schema", - Short: "Print policy JSON schema", - Args: cobra.NoArgs, - DisableFlagsInUseLine: true, - RunE: func(cmd *cobra.Command, args []string) error { - return runJSONSchema() - }, - } - return cmd -} - -func runJSONSchema() error { - return errors.New("not implemented") -} diff --git a/commands/policy/root.go b/commands/policy/root.go index 5e04717a2..fa1629982 100644 --- a/commands/policy/root.go +++ b/commands/policy/root.go @@ -18,7 +18,7 @@ func RootCmd(rootcmd *cobra.Command, dockerCli command.Cli, rootOpts RootOptions } cmd.AddCommand( - jsonSchemaCmd(), + // TODO: json-schema command evalCmd(dockerCli, rootOpts), testCmd(dockerCli, rootOpts), ) diff --git a/docs/reference/buildx_policy.md b/docs/reference/buildx_policy.md index 642d1f865..5dda57683 100644 --- a/docs/reference/buildx_policy.md +++ b/docs/reference/buildx_policy.md @@ -5,11 +5,10 @@ Commands for working with build policies ### Subcommands -| Name | Description | -|:----------------------------------------------|:-----------------------------| -| [`eval`](buildx_policy_eval.md) | Evaluate policy for a source | -| [`json-schema`](buildx_policy_json-schema.md) | Print policy JSON schema | -| [`test`](buildx_policy_test.md) | Run policy tests | +| Name | Description | +|:--------------------------------|:-----------------------------| +| [`eval`](buildx_policy_eval.md) | Evaluate policy for a source | +| [`test`](buildx_policy_test.md) | Run policy tests | ### Options