Skip to content

Commit 49dfeec

Browse files
author
Xun Zhou
committed
updates
1 parent eb11564 commit 49dfeec

3 files changed

Lines changed: 62 additions & 27 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v3.47.6 - 2025-12-25
4+
5+
- **update the documentation**: update the documentation to the latest version
6+
- **update homebrew tap**: add taskr homebrew tap and add the newest version
7+
8+
## v3.47.5 - 2025-12-24
9+
- **Add banner config**: enable banner feature
10+
311
## v3.46.3 - 2025-12-22
412

513
- **Add index**: sort the task by given task index

website/src/docs/getting-started.md

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ haven't installed Task yet, head over to our [installation guide](installation).
1515
Once Task is installed, you can create your first Taskfile by running:
1616

1717
```shell
18-
task --init
18+
taskr --init
1919
```
2020

2121
This will create a file called `Taskfile.yml` in the current directory. If you
2222
want to create the file in another directory, you can pass an absolute or
2323
relative path to the directory into the command:
2424

2525
```shell
26-
task --init ./subdirectory
26+
taskr --init ./subdirectory
2727
```
2828

2929
Or if you want the Taskfile to have a specific name, you can pass in the name of
3030
the file:
3131

3232
```shell
33-
task --init Custom.yml
33+
taskr --init Custom.yml
3434
```
3535

3636
This will create a Taskfile that looks something like this:
@@ -81,14 +81,14 @@ the absolute or relative path to the directory as an argument using the `--dir`
8181
flag:
8282

8383
```shell
84-
task --dir ./subdirectory
84+
taskr --dir ./subdirectory
8585
```
8686

8787
Or if you created a Taskfile with a different name, you can run it by passing
8888
the name of the Taskfile as an argument using the `--taskfile` flag:
8989

9090
```shell
91-
task --taskfile Custom.yml
91+
taskr --taskfile Custom.yml
9292
```
9393

9494
## Adding a build task
@@ -105,21 +105,48 @@ called must be available as a built-in or in the system's `PATH`.
105105
When you're done, it should look something like this:
106106

107107
```yaml
108-
version: '3'
108+
version: "3"
109+
banner: true
110+
project: myApp
111+
categories: ["docker"]
109112
110113
vars:
111-
GREETING: Hello, World!
114+
DC: docker compose -f docker/docker-compose.yml
115+
DC_EXEC_APP: "{{.DC}} exec app"
116+
117+
env:
118+
SHELL: /bin/bash
112119
113120
tasks:
114-
default:
115-
desc: Print a greeting message
121+
run:
122+
desc: Run API server with hot-reload
123+
category: dev
124+
index: 2
116125
cmds:
117-
- echo "{{.GREETING}}"
118-
silent: true
126+
- "{{.DC_EXEC_APP}} air"
119127
120128
build:
129+
desc: Build Go application
130+
deps: [setup-dirs]
131+
category: dev
132+
index: 1
121133
cmds:
122-
- go build ./cmd/main.go
134+
- '{{.DC_EXEC_APP}} go build -ldflags="-w -s" -o {{.OUT_DIR}}/api ./cmd/api'
135+
silent: true
136+
137+
tidy:
138+
category: dependencies
139+
desc: Tidy and verify dependencies
140+
cmds:
141+
- "{{.DC_EXEC_APP}} go mod tidy"
142+
silent: true
143+
144+
logs:
145+
category: docker
146+
desc: Follow logs from all services
147+
cmds:
148+
- "{{.DC}} logs -f"
149+
123150
```
124151

125152
Call the task by running:

website/src/docs/guide.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ from stdin, you must specify the `-t/--taskfile` flag with the special `-`
9999
value. You may then pipe into Task as you would any other program:
100100

101101
```shell
102-
task -t - <(cat ./Taskfile.yml)
102+
taskr -t - <(cat ./Taskfile.yml)
103103
# OR
104-
cat ./Taskfile.yml | task -t -
104+
cat ./Taskfile.yml | taskr -t -
105105
```
106106

107107
## Environment variables
@@ -341,7 +341,7 @@ tasks:
341341
If you run `task -a` it will print :
342342

343343
```sh
344-
task: Available tasks for this project:
344+
taskr: Available tasks for this project:
345345
* greet:
346346
* foo
347347
```
@@ -1187,7 +1187,7 @@ listed below (most important first):
11871187
Example of sending parameters with environment variables:
11881188

11891189
```shell
1190-
$ TASK_VARIABLE=a-value task do-something
1190+
$ TASK_VARIABLE=a-value taskr do-something
11911191
```
11921192

11931193
::: tip
@@ -1201,7 +1201,7 @@ Since some shells do not support the above syntax to set environment variables
12011201
command.
12021202

12031203
```shell
1204-
$ task write-file FILE=file.txt "CONTENT=Hello, World!" print "MESSAGE=All done!"
1204+
$ taskr write-file FILE=file.txt "CONTENT=Hello, World!" print "MESSAGE=All done!"
12051205
```
12061206

12071207
Example of locally declared vars:
@@ -1758,14 +1758,14 @@ and store the result in the `.SERVICE` variable which is then echoed out in the
17581758
cmds:
17591759

17601760
```shell
1761-
$ task start:foo
1761+
$ taskr start:foo
17621762
Starting foo
17631763
```
17641764

17651765
You can use whitespace in your arguments as long as you quote the task name:
17661766

17671767
```shell
1768-
$ task "start:foo bar"
1768+
$ taskr "start:foo bar"
17691769
Starting foo bar
17701770
```
17711771

@@ -1774,7 +1774,7 @@ be used. If you are using included Taskfiles, tasks in parent files will be
17741774
considered first.
17751775

17761776
```shell
1777-
$ task start:foo:3
1777+
$ taskr start:foo:3
17781778
Starting foo with 3 replicas
17791779
```
17801780

@@ -2002,8 +2002,8 @@ tasks:
20022002
```
20032003

20042004
```shell
2005-
task dangerous
2006-
task: "This is a dangerous command... Do you want to continue?" [y/N]
2005+
taskr dangerous
2006+
taskr: "This is a dangerous command... Do you want to continue?" [y/N]
20072007
```
20082008

20092009
Prompts can be a single value or a list of prompts, like below:
@@ -2029,7 +2029,7 @@ will exit with [exit code](/docs/reference/cli#exit-codes) 205. If approved,
20292029
Task will continue as normal.
20302030

20312031
```shell
2032-
task example
2032+
taskr example
20332033
not dangerous command
20342034
task: "This is a dangerous command. Do you want to continue?" [y/N]
20352035
y
@@ -2220,7 +2220,7 @@ tasks:
22202220
```
22212221

22222222
```shell
2223-
$ task default
2223+
$ taskr default
22242224
::group::default
22252225
Hello, World!
22262226
::endgroup::
@@ -2245,8 +2245,8 @@ tasks:
22452245
```
22462246

22472247
```shell
2248-
$ task passes
2249-
$ task errors
2248+
$ taskr passes
2249+
$ taskr errors
22502250
output-of-errors
22512251
task: Failed to run task "errors": exit status 1
22522252
```
@@ -2278,7 +2278,7 @@ tasks:
22782278
```
22792279

22802280
```shell
2281-
$ task default
2281+
$ taskr default
22822282
[print-foo] foo
22832283
[print-bar] bar
22842284
[print-baz] baz

0 commit comments

Comments
 (0)