Skip to content

Commit 390220e

Browse files
authored
fix: typos in docs, changelog, testdata, comments (#1910)
1 parent c3bd6b9 commit 390220e

File tree

12 files changed

+48
-48
lines changed

12 files changed

+48
-48
lines changed

CHANGELOG.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
- Added the
293293
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles)
294294
as a draft (#1152, #1317 by @pd93).
295-
- Improve performance of content checksuming on `sources:` by replacing md5 with
295+
- Improve performance of content checksumming on `sources:` by replacing md5 with
296296
[XXH3](https://xxhash.com/) which is much faster. This is a soft breaking
297297
change because checksums will be invalidated when upgrading to this release
298298
(#1325 by @ReillyBrogan).
@@ -352,7 +352,7 @@
352352
- Deprecated `version: 2` schema. This will be removed in the next major release
353353
(#1197, #1198, #1199 by @pd93).
354354
- Added a new `prompt:` prop to set a warning prompt to be shown before running
355-
a potential dangurous task (#100, #1163 by @MaxCheetham,
355+
a potential dangerous task (#100, #1163 by @MaxCheetham,
356356
[Documentation](https://taskfile.dev/usage/#warning-prompts)).
357357
- Added support for single command task syntax. With this change, it's now
358358
possible to declare just `cmd:` in a task, avoiding the more complex
@@ -367,7 +367,7 @@
367367
percentage (#1173 by @misitebao).
368368
- Starting on this release, official binaries for FreeBSD will be available to
369369
download (#1068 by @andreynering).
370-
- Fix some errors being unintendedly supressed (#1134 by @clintmod).
370+
- Fix some errors being unintendedly suppressed (#1134 by @clintmod).
371371
- Fix a nil pointer error when `version` is omitted from a Taskfile (#1148,
372372
#1149 by @pd93).
373373
- Fix duplicate error message when a task does not exists (#1141, #1144 by
@@ -441,7 +441,7 @@ it a go and let us know what you think via a
441441
by @pd93).
442442
- Update to Go 1.20 (bump minimum version to 1.19) (#1010 by @pd93)
443443
- Added environment variable `FORCE_COLOR` support to force color output.
444-
Usefull for environments without TTY (#1003 by @automation-stack)
444+
Useful for environments without TTY (#1003 by @automation-stack)
445445

446446
## v3.20.0 - 2023-01-14
447447

@@ -796,7 +796,7 @@ it a go and let us know what you think via a
796796

797797
- Fix error code for the `--help` flag (#300, #330).
798798
- Print version to stdout instead of stderr (#299, #329).
799-
- Supress `context` errors when using the `--watch` flag (#313, #317).
799+
- Suppress `context` errors when using the `--watch` flag (#313, #317).
800800
- Support templating on description (#276, #283).
801801

802802
## v2.8.0 - 2019-12-07
@@ -805,7 +805,7 @@ it a go and let us know what you think via a
805805
parallel (#266).
806806
- Fixed bug where calling the `task` CLI only informing global vars would not
807807
execute the `default` task.
808-
- Add hability to silent all tasks by adding `silent: true` a the root of the
808+
- Add ability to silent all tasks by adding `silent: true` a the root of the
809809
Taskfile.
810810

811811
## v2.7.1 - 2019-11-10
@@ -947,7 +947,7 @@ document, since it describes in depth what changed for this version.
947947
## v1.4.3 - 2017-09-07
948948

949949
- Allow assigning variables to tasks at run time via CLI (#33)
950-
- Added suport for multiline variables from sh (#64)
950+
- Added support for multiline variables from sh (#64)
951951
- Fixes env: remove square braces and evaluate shell (#62)
952952
- Watch: change watch library and few fixes and improvements
953953
- When use watching, cancel and restart long running process on file change (#59
@@ -1007,7 +1007,7 @@ document, since it describes in depth what changed for this version.
10071007
- More tests and Travis integration
10081008
- Watch a task (experimental)
10091009
- Possibility to call another task
1010-
- Fix "=" not being reconized in variables/environment variables
1010+
- Fix "=" not being recognized in variables/environment variables
10111011
- Tasks can now have a description, and help will print them (#10)
10121012
- Task dependencies now run concurrently
10131013
- Support for a default task (#16)

cmd/sleepit/sleepit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func worker(
159159
return workerDone
160160
}
161161

162-
// Do some work and then return, so that the caller can decide wether to continue or not.
162+
// Do some work and then return, so that the caller can decide whether to continue or not.
163163
// Return true when all work is done.
164164
func doSomeWork(deadline time.Time) bool {
165165
if time.Now().After(deadline) {

internal/compiler/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (c *Compiler) HandleDynamicVar(v ast.Var, dir string) (string, error) {
175175
return result, nil
176176
}
177177

178-
// ResetCache clear the dymanic variables cache
178+
// ResetCache clear the dynamic variables cache
179179
func (c *Compiler) ResetCache() {
180180
c.muDynamicCache.Lock()
181181
defer c.muDynamicCache.Unlock()

task_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,21 @@ func TestEnv(t *testing.T) {
120120
Target: "default",
121121
TrimSpace: false,
122122
Files: map[string]string{
123-
"local.txt": "GOOS='linux' GOARCH='amd64' CGO_ENABLED='0'\n",
124-
"global.txt": "FOO='foo' BAR='overriden' BAZ='baz'\n",
125-
"multiple_type.txt": "FOO='1' BAR='true' BAZ='1.1'\n",
126-
"not-overriden.txt": "QUX='from_os'\n",
123+
"local.txt": "GOOS='linux' GOARCH='amd64' CGO_ENABLED='0'\n",
124+
"global.txt": "FOO='foo' BAR='overridden' BAZ='baz'\n",
125+
"multiple_type.txt": "FOO='1' BAR='true' BAZ='1.1'\n",
126+
"not-overridden.txt": "QUX='from_os'\n",
127127
},
128128
}
129129
tt.Run(t)
130130
t.Setenv("TASK_X_ENV_PRECEDENCE", "1")
131131
experiments.EnvPrecedence = experiments.New("ENV_PRECEDENCE")
132132
ttt := fileContentTest{
133133
Dir: "testdata/env",
134-
Target: "overriden",
134+
Target: "overridden",
135135
TrimSpace: false,
136136
Files: map[string]string{
137-
"overriden.txt": "QUX='from_taskfile'\n",
137+
"overridden.txt": "QUX='from_taskfile'\n",
138138
},
139139
}
140140
ttt.Run(t)

testdata/env/Taskfile.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tasks:
1515
cmds:
1616
- task: local
1717
- task: global
18-
- task: not-overriden
18+
- task: not-overridden
1919
- task: multiple_type
2020

2121
local:
@@ -31,7 +31,7 @@ tasks:
3131

3232
global:
3333
env:
34-
BAR: overriden
34+
BAR: overridden
3535
cmds:
3636
- echo "FOO='$FOO' BAR='$BAR' BAZ='$BAZ'" > global.txt
3737

@@ -43,10 +43,10 @@ tasks:
4343
cmds:
4444
- echo "FOO='$FOO' BAR='$BAR' BAZ='$BAZ'" > multiple_type.txt
4545

46-
not-overriden:
46+
not-overridden:
4747
cmds:
48-
- echo "QUX='$QUX'" > not-overriden.txt
48+
- echo "QUX='$QUX'" > not-overridden.txt
4949

50-
overriden:
50+
overridden:
5151
cmds:
52-
- echo "QUX='$QUX'" > overriden.txt
52+
- echo "QUX='$QUX'" > overridden.txt

testdata/exit_immediately/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ version: '3'
33
tasks:
44
default: |
55
this_should_fail
6-
echo "This shoudn't be print"
6+
echo "This shouldn't be print"

testdata/summary/Taskfile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
tasks:
44
task-with-summary:
5-
deps: [dependend-task-1, dependend-task-2]
5+
deps: [dependent-task-1, dependent-task-2]
66
summary: |
77
summary of task-with-summary - line 1
88
line 2
@@ -17,10 +17,10 @@ tasks:
1717
cmds:
1818
- echo 'other-task-with-summary was executed'
1919

20-
dependend-task-1:
20+
dependent-task-1:
2121
cmds:
22-
- echo 'dependend-task-1 was executed'
22+
- echo 'dependent-task-1 was executed'
2323

24-
dependend-task-2:
24+
dependent-task-2:
2525
cmds:
26-
- echo 'dependend-task-2 was executed'
26+
- echo 'dependent-task-2 was executed'

testdata/summary/task-with-summary.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ line 2
55
line 3
66

77
dependencies:
8-
- dependend-task-1
9-
- dependend-task-2
8+
- dependent-task-1
9+
- dependent-task-2
1010

1111
commands:
1212
- echo 'task-with-summary was executed'

website/docs/changelog.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ sidebar_position: 14
297297
- Added the
298298
[Remote Taskfiles experiment](https://taskfile.dev/experiments/remote-taskfiles)
299299
as a draft (#1152, #1317 by @pd93).
300-
- Improve performance of content checksuming on `sources:` by replacing md5 with
300+
- Improve performance of content checksumming on `sources:` by replacing md5 with
301301
[XXH3](https://xxhash.com/) which is much faster. This is a soft breaking
302302
change because checksums will be invalidated when upgrading to this release
303303
(#1325 by @ReillyBrogan).
@@ -357,7 +357,7 @@ sidebar_position: 14
357357
- Deprecated `version: 2` schema. This will be removed in the next major release
358358
(#1197, #1198, #1199 by @pd93).
359359
- Added a new `prompt:` prop to set a warning prompt to be shown before running
360-
a potential dangurous task (#100, #1163 by @MaxCheetham,
360+
a potential dangerous task (#100, #1163 by @MaxCheetham,
361361
[Documentation](https://taskfile.dev/usage/#warning-prompts)).
362362
- Added support for single command task syntax. With this change, it's now
363363
possible to declare just `cmd:` in a task, avoiding the more complex
@@ -372,7 +372,7 @@ sidebar_position: 14
372372
percentage (#1173 by @misitebao).
373373
- Starting on this release, official binaries for FreeBSD will be available to
374374
download (#1068 by @andreynering).
375-
- Fix some errors being unintendedly supressed (#1134 by @clintmod).
375+
- Fix some errors being unintendedly suppressed (#1134 by @clintmod).
376376
- Fix a nil pointer error when `version` is omitted from a Taskfile (#1148,
377377
#1149 by @pd93).
378378
- Fix duplicate error message when a task does not exists (#1141, #1144 by
@@ -446,7 +446,7 @@ it a go and let us know what you think via a
446446
by @pd93).
447447
- Update to Go 1.20 (bump minimum version to 1.19) (#1010 by @pd93)
448448
- Added environment variable `FORCE_COLOR` support to force color output.
449-
Usefull for environments without TTY (#1003 by @automation-stack)
449+
Useful for environments without TTY (#1003 by @automation-stack)
450450

451451
## v3.20.0 - 2023-01-14
452452

@@ -801,7 +801,7 @@ it a go and let us know what you think via a
801801

802802
- Fix error code for the `--help` flag (#300, #330).
803803
- Print version to stdout instead of stderr (#299, #329).
804-
- Supress `context` errors when using the `--watch` flag (#313, #317).
804+
- Suppress `context` errors when using the `--watch` flag (#313, #317).
805805
- Support templating on description (#276, #283).
806806

807807
## v2.8.0 - 2019-12-07
@@ -810,7 +810,7 @@ it a go and let us know what you think via a
810810
parallel (#266).
811811
- Fixed bug where calling the `task` CLI only informing global vars would not
812812
execute the `default` task.
813-
- Add hability to silent all tasks by adding `silent: true` a the root of the
813+
- Add ability to silent all tasks by adding `silent: true` a the root of the
814814
Taskfile.
815815

816816
## v2.7.1 - 2019-11-10
@@ -952,7 +952,7 @@ document, since it describes in depth what changed for this version.
952952
## v1.4.3 - 2017-09-07
953953

954954
- Allow assigning variables to tasks at run time via CLI (#33)
955-
- Added suport for multiline variables from sh (#64)
955+
- Added support for multiline variables from sh (#64)
956956
- Fixes env: remove square braces and evaluate shell (#62)
957957
- Watch: change watch library and few fixes and improvements
958958
- When use watching, cancel and restart long running process on file change (#59
@@ -1012,7 +1012,7 @@ document, since it describes in depth what changed for this version.
10121012
- More tests and Travis integration
10131013
- Watch a task (experimental)
10141014
- Possibility to call another task
1015-
- Fix "=" not being reconized in variables/environment variables
1015+
- Fix "=" not being recognized in variables/environment variables
10161016
- Tasks can now have a description, and help will print them (#10)
10171017
- Task dependencies now run concurrently
10181018
- Support for a default task (#16)

website/docs/usage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ tasks:
12121212
- echo "{{.GREETING}}"
12131213
```
12141214

1215-
Example of a `default` value to be overriden from CLI:
1215+
Example of a `default` value to be overridden from CLI:
12161216

12171217
```yaml
12181218
version: '3'

0 commit comments

Comments
 (0)