Skip to content

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

cli

简单cli

root := &cli.CLI{}
start := &cli.CLI{
	Use:         "start",
	Instruction: "启动",
}
web := &cli.CLI{
	Use: "web",
	Func: func(args []string, cli *cli.CLI) {
		cli.Help()
	},
}
start.AddCommand(web)
root.AddCommand(start)
root.Run()