Adds description to the init command
This commit is contained in:
parent
f52f7a6984
commit
2e7e4791b9
14
cmd/init.go
14
cmd/init.go
@ -22,14 +22,14 @@ import (
|
|||||||
|
|
||||||
// initCmd represents the init command
|
// initCmd represents the init command
|
||||||
var initCmd = &cobra.Command{
|
var initCmd = &cobra.Command{
|
||||||
Use: "init",
|
Use: "init [name]",
|
||||||
Short: "A brief description of your command",
|
Short: "Initialize a Ponder Library",
|
||||||
Long: `A longer description that spans multiple lines and likely contains examples
|
Long: `Initialize (ponder init) will create a new library, with a ponder
|
||||||
and usage of using your command. For example:
|
settings file and corresponding git ignore file.
|
||||||
|
|
||||||
Cobra is a CLI library for Go that empowers applications.
|
* If a name is provided, it will be created in the current directory;
|
||||||
This application is a tool to generate the needed files
|
* If no name is provided, the current directory will be assumed;
|
||||||
to quickly create a Cobra application.`,
|
Init will not use an existing directory with contents.`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
// TODO: Work your own magic here
|
// TODO: Work your own magic here
|
||||||
fmt.Println("init called")
|
fmt.Println("init called")
|
||||||
|
Reference in New Issue
Block a user