Merge pull request #3614 from tonistiigi/policy-json-stub

commands: remove policy json-schema stub
This commit is contained in:
Tõnis Tiigi
2026-01-16 14:27:33 -08:00
committed by GitHub
3 changed files with 5 additions and 29 deletions
-23
View File
@@ -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")
}
+1 -1
View File
@@ -18,7 +18,7 @@ func RootCmd(rootcmd *cobra.Command, dockerCli command.Cli, rootOpts RootOptions
} }
cmd.AddCommand( cmd.AddCommand(
jsonSchemaCmd(), // TODO: json-schema command
evalCmd(dockerCli, rootOpts), evalCmd(dockerCli, rootOpts),
testCmd(dockerCli, rootOpts), testCmd(dockerCli, rootOpts),
) )
+4 -5
View File
@@ -5,11 +5,10 @@ Commands for working with build policies
### Subcommands ### Subcommands
| Name | Description | | Name | Description |
|:----------------------------------------------|:-----------------------------| |:--------------------------------|:-----------------------------|
| [`eval`](buildx_policy_eval.md) | Evaluate policy for a source | | [`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 |
| [`test`](buildx_policy_test.md) | Run policy tests |
### Options ### Options