Merge pull request #3614 from tonistiigi/policy-json-stub
commands: remove policy json-schema stub
This commit is contained in:
@@ -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")
|
|
||||||
}
|
|
||||||
@@ -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),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user