feat: added init cmd with example
This commit is contained in:
parent
e458783061
commit
85e333289b
1 changed files with 20 additions and 0 deletions
20
cmd/init.go
Normal file
20
cmd/init.go
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
package cmd
|
||||||
|
|
||||||
|
import "github.com/spf13/cobra"
|
||||||
|
|
||||||
|
var initCmd = &cobra.Command{
|
||||||
|
Use: "init",
|
||||||
|
Example: `
|
||||||
|
# create default files and directories at specified root path
|
||||||
|
makeshift init $MAKESHIFT_ROOT
|
||||||
|
`,
|
||||||
|
Args: cobra.ExactArgs(1),
|
||||||
|
Short: "Initialize directory with default files",
|
||||||
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue