2016-07-12 08:18:02 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2016-07-12 10:14:54 +00:00
|
|
|
//"os"
|
|
|
|
//"gopkg.in/urfave/cli.v2"
|
|
|
|
"github.com/tockins/realize/realize"
|
2016-07-12 08:18:02 +00:00
|
|
|
)
|
|
|
|
|
2016-07-12 17:51:11 +00:00
|
|
|
type person struct {
|
|
|
|
name string
|
|
|
|
age int
|
|
|
|
}
|
|
|
|
|
2016-07-12 08:18:02 +00:00
|
|
|
func main() {
|
|
|
|
|
2016-07-12 17:51:11 +00:00
|
|
|
t := realize.Init()
|
2016-07-12 10:14:54 +00:00
|
|
|
t.Create()
|
2016-07-12 08:18:02 +00:00
|
|
|
|
2016-07-12 10:14:54 +00:00
|
|
|
//app := &cli.App{
|
|
|
|
// Name: "realize",
|
|
|
|
// Version: "1.0",
|
|
|
|
// Usage: "A sort of Webpack for Go. Run, build and watch file changes with custom paths",
|
|
|
|
// Commands: []*cli.Command{
|
|
|
|
// {
|
|
|
|
// Name: "run",
|
|
|
|
// Usage: "Build and watch file changes",
|
|
|
|
// Action: func(c *cli.Context) error {
|
|
|
|
// fmt.Printf("Hello %q", c.String("run"))
|
|
|
|
// return nil
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// Name: "start",
|
|
|
|
// Category: "config",
|
|
|
|
// Usage: "create the initial config file",
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// Flags: []cli.Flag {
|
|
|
|
// &cli.StringFlag{
|
|
|
|
// Name: "run",
|
|
|
|
// Value: "main.go",
|
|
|
|
// Usage: "main file of your project",
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
//app.Run(os.Args)
|
2016-07-12 08:18:02 +00:00
|
|
|
}
|