Compare commits

...

1 Commits

Author SHA1 Message Date
Lea Anthony 37b395c308 [v3] Add Naive build command 2023-01-22 20:40:35 +11:00
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ import (
func main() {
app := clir.NewCli("Wails", "The Wails CLI", "v3")
app.NewSubCommandFunction("build", "Build the project", commands.Build)
app.NewSubCommandFunction("init", "Initialise a new project", commands.Init)
task := app.NewSubCommand("task", "Run and list tasks")
task.NewSubCommandFunction("run", "Run a task", commands.RunTask)
+11
View File
@@ -0,0 +1,11 @@
package commands
import (
"github.com/wailsapp/wails/v3/internal/flags"
)
func Build(options *flags.Build) error {
return RunTask(&RunTaskOptions{
Name: "build",
})
}
+5
View File
@@ -0,0 +1,5 @@
package flags
type Build struct {
Common
}