zk/cmd/init.go

12 lines
208 B
Go
Raw Normal View History

2020-12-24 15:02:19 +00:00
package cmd
import "github.com/mickael-menu/zk/core/zk"
2020-12-24 15:02:19 +00:00
type Init struct {
Directory string `arg optional name:"directory" default:"."`
}
func (cmd *Init) Run() error {
return zk.Create(cmd.Directory)
2020-12-24 15:02:19 +00:00
}