cmd

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TruncateCommandLength = 20

Variables

View Source
var PsCmd = &cobra.Command{
	Use:   "ps",
	Short: "List containers",
	RunE:  ps,
}
View Source
var RootCmd = &cobra.Command{
	Use:   "ibug",
	Short: "iBug's Docker CLI plugin",
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

RootCmd represents the base command when called without any subcommands

View Source
var TestCmd = &cobra.Command{
	Use:    "test",
	Short:  "test command",
	Run:    RunTest,
	Hidden: true,
}
View Source
var UpdateCmd = &cobra.Command{
	Use:   "update",
	Short: "Update this tool",
	RunE: func(cmd *cobra.Command, args []string) error {
		return updater.UpdateBinary(docker.Cli.Out(), fForce)
	},
}

Functions

func MakeCmd

func MakeCmd(cli command.Cli) *cobra.Command

MakeCmd implements the first argument for docker/cli/cli-plugins/plugin.Run

func RunTest added in v0.0.2

func RunTest(cmd *cobra.Command, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL