cmd

package
v0.0.0-...-fcfc175 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptHost string
View Source
var RootCmd = &cobra.Command{
	Use:   "crictl",
	Short: "crictl - 与cri-impl守护进程 sock 通信的CLI 工具",
	Long:  `crictl - 与cri-impl守护进程 sock 通信的CLI 工具`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("Missed or unknown command.\n\n")
		cmd.Help()
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Connect

func Connect() (server.CriClient, *grpc.ClientConn)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Print

func Print(v interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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