commands: remove policy json-schema stub

Remove stub for now so we don't ship it in a release.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-01-16 12:48:46 -08:00
parent bc5d652738
commit d0e4db27e0
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(
jsonSchemaCmd(),
// TODO: json-schema command
evalCmd(dockerCli, rootOpts),
testCmd(dockerCli, rootOpts),
)
+1 -2
View File
@@ -6,9 +6,8 @@ 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 |