Prompt for template variables values based on the available manifest

This commit is contained in:
2020-02-21 14:29:26 +01:00
parent f5d5afa82d
commit d9e446553c
7 changed files with 217 additions and 73 deletions

View File

@ -1,21 +1,22 @@
package main
import (
"log"
"fmt"
"os"
"gitlab.com/wpetit/scaffold/internal/command"
"forge.cadoles.com/wpetit/scaffold/internal/command"
"github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Usage: "generate source code for goweb based projects",
Usage: "generate/update directory tree from template",
Commands: command.All(),
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
fmt.Printf("%+v", err)
os.Exit(1)
}
}