func InitRun(r *cmd.Root, s *cmd.Sub) {
	// gFlags := r.Flags.(*GlobalFlags)
	flags := s.Flags.(*InitFlags)
	// args := s.Args.(*InitArgs)
	log.Infof("Creating project directory '%s'\n", flags.DestDir)
	if err := os.MkdirAll(flags.DestDir, 0755); err != nil {
		log.Fatalf("Failed to create project directory '%s', reason: %s\n", flags.DestDir, err)
	}
	log.Goodln("Done.")
	util.CreateDir(filepath.Join(flags.DestDir, "assets"))
	util.CreateDir(filepath.Join(flags.DestDir, config.Dir))
	util.CreateDir(filepath.Join(flags.DestDir, "content"))
	util.CreateDir(filepath.Join(flags.DestDir, "templates"))
}
// InitRun carries out the "init" sub-command
InitRun carries out the "init" sub-command
// InitRun carries out the " init " sub - command
func InitRun(r *cmd.Root, s *cmd.Sub) {
	flags := s.Flags.(*InitFlags)
	log.Infof("Creating project directory '%s'\n", flags.DestDir)
	if err := os.MkdirAll(flags.DestDir, 0755); err != nil {
		log.Fatalf("Failed to create project directory '%s', reason: %s\n", flags.DestDir, err)
	}
	log.Goodln("Done.")
	util.CreateDir(filepath.Join(flags.DestDir, "assets"))
	util.CreateDir(filepath.Join(flags.DestDir, config.Dir))
	util.CreateDir(filepath.Join(flags.DestDir, "content"))
	util.CreateDir(filepath.Join(flags.DestDir, "templates"))
}
func InitRun ( r * cmd . Root , s * cmd . Sub ) { flags := s . Flags . ( * InitFlags ) log . Infof ( " \n " , flags . DestDir ) if err := os . MkdirAll ( flags . DestDir , 0755 ) ; err != nil { log . Fatalf ( " \n " , flags . DestDir , err ) } log . Goodln ( " " ) util . CreateDir ( filepath . Join ( flags . DestDir , " " ) ) util . CreateDir ( filepath . Join ( flags . DestDir , config . Dir ) ) util . CreateDir ( filepath . Join ( flags . DestDir , " " ) ) util . CreateDir ( filepath . Join ( flags . DestDir , " " ) ) }
InitRun carries out the "init" sub-command
InitRun carries out the " init " sub - command
// gFlags := r.Flags.(*GlobalFlags) // args := s.Args.(*InitArgs)