Skip to content

Commit 3c9604b

Browse files
authored
fix: typos in docs and var name (#130)
1 parent 56ebe49 commit 3c9604b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

doc/content/community.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Community"
3-
description: Contrubutions from the community.
3+
description: Contributions from the community.
44
linkTitle: "Community"
55
menu: { main: { weight: 11 } }
66
---

doc/content/task-syntax/requires.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `requires` attribute can be used to define tasks that should be run prior to
1313

1414
For example, you want to run a task to deploy your code, but you want to run all the unit tests and linters before that happens.
1515

16-
Before the command section of the task, you may define comma seperated dependencies with `requires:` or `req:` followed by the name of the tasks that are dependencies.
16+
Before the command section of the task, you may define comma separated dependencies with `requires:` or `req:` followed by the name of the tasks that are dependencies.
1717

1818
````markdown
1919
## Tasks

doc/content/task-syntax/run-deps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu: { main: { parent: "task-syntax", weight: 11 } }
88
## RunDeps attribute
99

1010
By default, the dependencies of a task are run sequentially, in the order they are listed.
11-
However we may prefer for all the dependencies of a task to be run in paralled.
11+
However we may prefer for all the dependencies of a task to be run in parallel.
1212

1313
The solution would be to set the `RunDeps` attribute to `async` (defaults to `sync`).
1414

parser/parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const (
130130
// AttributeTypeInp sets the required inputs for a Task, inputs can be provided
131131
// as commandline arguments or environment variables.
132132
AttributeTypeInp
133-
// AttrubuteTypeRun sets the tasks requiredBehaviour, can be always or once.
133+
// AttributeTypeRun sets the tasks requiredBehaviour, can be always or once.
134134
// Default is always
135135
AttributeTypeRun
136136
// AttributeTypeRunDeps sets the tasks dependenciesBehaviour, can be sync or async.

run/run.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Runner struct {
2525
tasks models.Tasks
2626
dir string
2727
alreadyRan map[string]bool
28-
alreadRanMu sync.Mutex
28+
alreadyRanMu sync.Mutex
2929
}
3030

3131
// NewRunner takes Tasks and returns a Runner.
@@ -112,14 +112,14 @@ func (r *Runner) runWithPadding(ctx context.Context, name string, inputs []strin
112112
if !ok {
113113
return fmt.Errorf("task %s not found", name)
114114
}
115-
r.alreadRanMu.Lock()
115+
r.alreadyRanMu.Lock()
116116
if task.RequiredBehaviour == models.RequiredBehaviourOnce && r.alreadyRan[task.Name] {
117-
r.alreadRanMu.Unlock()
117+
r.alreadyRanMu.Unlock()
118118
fmt.Printf("task %q ran already: skipping\n", task.Name)
119119
return nil
120120
}
121121
r.alreadyRan[task.Name] = true
122-
r.alreadRanMu.Unlock()
122+
r.alreadyRanMu.Unlock()
123123
env := os.Environ()
124124
env = append(env, task.Env...)
125125
inp, err := getInputs(task, inputs, env)

0 commit comments

Comments
 (0)