Remove stub for now so we don't ship it in a release. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
28 lines
573 B
Go
28 lines
573 B
Go
package policy
|
|
|
|
import (
|
|
"github.com/docker/cli/cli/command"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
type RootOptions struct {
|
|
Builder *string
|
|
}
|
|
|
|
// RootCmd creates the policy command tree.
|
|
func RootCmd(rootcmd *cobra.Command, dockerCli command.Cli, rootOpts RootOptions) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "policy",
|
|
Short: "Commands for working with build policies",
|
|
DisableFlagsInUseLine: true,
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
// TODO: json-schema command
|
|
evalCmd(dockerCli, rootOpts),
|
|
testCmd(dockerCli, rootOpts),
|
|
)
|
|
|
|
return cmd
|
|
}
|