Skip to content

daijinru/mango-packages-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mango Packages Command

Simplified from Cobra and will be maintained continuously.

$ <CLI_NAME> <flag> <args>

Usage

A tool supports adding sub commands.

rootCmd := &command.Command{
	Use: "root"
}

// new a subcmd
subCmd := &command.Command{
	use: "next"
}
subCmd.addCommand(&command.Command{
	use: "next_sub",
})

// add the sub to root
rootCmd.addCommand(subCmd)
rootCmd.Execute()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages