func BuildRun(r *cmd.Root, s *cmd.Sub) {
	// gFlags := r.Flags.(*GlobalFlags)
	flags := s.Flags.(*BuildFlags)
	log.Infoln("Loading configuration")
	conf, err := config.Load(config.Path(flags.Src))
	if err != nil {
		log.Fatalf("Failed to load configuration: %q\n", err)
	}
	fmt.Printf("%#v\n", conf)
	log.Goodln("Config Loaded.")

	log.Infoln("Loading templates")
	tmpls, err := templates.Load(flags.Src)
	if err != nil {
		log.Fatalf("Failed to load templates: %q\n", err)
	}
	fmt.Printf("%#v\n", tmpls)
	log.Goodln("Templates Loaded.")
	log.Infoln("Setting up the rendering process")
	site, err := render.NewSite(&conf, tmpls)
	if err != nil {
		log.Fatalf("Failed to set up rendering: %q\n", err)
	}
	fmt.Printf("%#v\n", site)
}
// BuildRun carries out the "build" sub-command
BuildRun carries out the "build" sub-command
// BuildRun carries out the " build " sub - command
func BuildRun(r *cmd.Root, s *cmd.Sub) {
	flags := s.Flags.(*BuildFlags)
	log.Infoln("Loading configuration")
	conf, err := config.Load(config.Path(flags.Src))
	if err != nil {
		log.Fatalf("Failed to load configuration: %q\n", err)
	}
	fmt.Printf("%#v\n", conf)
	log.Goodln("Config Loaded.")
	log.Infoln("Loading templates")
	tmpls, err := templates.Load(flags.Src)
	if err != nil {
		log.Fatalf("Failed to load templates: %q\n", err)
	}
	fmt.Printf("%#v\n", tmpls)
	log.Goodln("Templates Loaded.")
	log.Infoln("Setting up the rendering process")
	site, err := render.NewSite(&conf, tmpls)
	if err != nil {
		log.Fatalf("Failed to set up rendering: %q\n", err)
	}
	fmt.Printf("%#v\n", site)
}
func BuildRun ( r * cmd . Root , s * cmd . Sub ) { flags := s . Flags . ( * BuildFlags ) log . Infoln ( " " ) conf , err := config . Load ( config . Path ( flags . Src ) ) if err != nil { log . Fatalf ( " \n " , err ) } fmt . Printf ( " \n " , conf ) log . Goodln ( " " ) log . Infoln ( " " ) tmpls , err := templates . Load ( flags . Src ) if err != nil { log . Fatalf ( " \n " , err ) } fmt . Printf ( " \n " , tmpls ) log . Goodln ( " " ) log . Infoln ( " " ) site , err := render . NewSite ( & conf , tmpls ) if err != nil { log . Fatalf ( " \n " , err ) } fmt . Printf ( " \n " , site ) }
BuildRun carries out the "build" sub-command
BuildRun carries out the " build " sub - command
// gFlags := r.Flags.(*GlobalFlags)