github.com/kunnos/engine@v1.13.1/cli/command/plugin/cmd.go (about)

     1  package plugin
     2  
     3  import (
     4  	"github.com/docker/docker/cli"
     5  	"github.com/docker/docker/cli/command"
     6  	"github.com/spf13/cobra"
     7  )
     8  
     9  // NewPluginCommand returns a cobra command for `plugin` subcommands
    10  func NewPluginCommand(dockerCli *command.DockerCli) *cobra.Command {
    11  	cmd := &cobra.Command{
    12  		Use:   "plugin",
    13  		Short: "Manage plugins",
    14  		Args:  cli.NoArgs,
    15  		RunE:  dockerCli.ShowHelp,
    16  	}
    17  
    18  	cmd.AddCommand(
    19  		newDisableCommand(dockerCli),
    20  		newEnableCommand(dockerCli),
    21  		newInspectCommand(dockerCli),
    22  		newInstallCommand(dockerCli),
    23  		newListCommand(dockerCli),
    24  		newRemoveCommand(dockerCli),
    25  		newSetCommand(dockerCli),
    26  		newPushCommand(dockerCli),
    27  		newCreateCommand(dockerCli),
    28  		newUpgradeCommand(dockerCli),
    29  	)
    30  	return cmd
    31  }