Skip to content

Commit 5ef3276

Browse files
committed
Update task
1 parent 8164519 commit 5ef3276

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

v3/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# v3
2+
3+
This directory is experimental. It probably won't work for you. There's no support for this directory. Dragons be here. You have been warned!

v3/cmd/wails/README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ NOTE: Whilst the tool will work for 32-bit Windows, it is not supported. Please
7474
#### defaults
7575

7676
```bash
77-
wails icon -input myicon.png -sizes "32,64,128" -windowsFilename myicon.ico -macFilename myicon.icns
77+
wails generate defaults
7878
```
79-
This will generate all the default assets and resources in the current directory. I
79+
This will generate all the default assets and resources in the current directory.
80+
81+
#### bindings
82+
83+
```bash
84+
wails generate bindings
85+
```
86+
87+
Generates bindings and models for your bound Go methods and structs.

v3/cmd/wails/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
func main() {
13-
app := clir.NewCli("wails", "The Wails CLI", "v3")
13+
app := clir.NewCli("Wails", "The Wails CLI", "v3")
1414
app.NewSubCommandFunction("init", "Initialise a new project", commands.Init)
1515
task := app.NewSubCommand("task", "Run and list tasks")
1616
task.NewSubCommandFunction("run", "Run a task", commands.RunTask)

v3/go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/wailsapp/wails/v3
33
go 1.19
44

55
require (
6-
github.com/go-task/task/v3 v3.19.1
6+
github.com/go-task/task/v3 v3.20.0
77
github.com/jackmordaunt/icns/v2 v2.2.1
88
github.com/leaanthony/clir v1.5.0
99
github.com/leaanthony/winicon v1.0.0
@@ -52,5 +52,3 @@ require (
5252
gopkg.in/yaml.v3 v3.0.1 // indirect
5353
mvdan.cc/sh/v3 v3.6.0 // indirect
5454
)
55-
56-
replace github.com/go-task/task/v3 v3.19.1 => github.com/wailsapp/task/v3 v3.19.1

v3/go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYF
2323
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=
2424
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I=
2525
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
26+
github.com/go-task/task/v3 v3.20.0 h1:pTavuhP+AiEpKLzh5I6Lja9Ux7ypYO5QMsEPTbhYEDc=
27+
github.com/go-task/task/v3 v3.20.0/go.mod h1:y7rWakbLR5gFElGgo6rA2dyr6vU/zNIDVfn3S4Of6OI=
2628
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
2729
github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
2830
github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo=

v3/internal/commands/task.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ func ListTasks(options *ListTaskOptions) error {
3939
if err := e.Setup(); err != nil {
4040
return err
4141
}
42-
tasks := e.GetTaskList()
42+
tasks, err := e.GetTaskList()
43+
if err != nil {
44+
return err
45+
}
4346
if len(tasks) == 0 {
4447
return fmt.Errorf("no tasks found. Ensure there is a `Taskfile.yml` in your project. You can generate a default takfile by running `wails generate defaults`")
4548
}
@@ -57,7 +60,7 @@ func ListTasks(options *ListTaskOptions) error {
5760
thisRow[1] = thisTask.Summary
5861
tableData = append(tableData, thisRow)
5962
}
60-
err := pterm.DefaultTable.WithHasHeader(true).WithHeaderRowSeparator("-").WithData(tableData).Render()
63+
err = pterm.DefaultTable.WithHasHeader(true).WithHeaderRowSeparator("-").WithData(tableData).Render()
6164
if err != nil {
6265
return err
6366
}

0 commit comments

Comments
 (0)