Skip to content

Commit 862cfd9

Browse files
authored
Merge pull request #2313 from buildkite/pdp-1496-update-agent-help-with-feedback-from-docs-for-v3510
2 parents bb41c63 + 7fca4c1 commit 862cfd9

8 files changed

+18
-25
lines changed

clicommand/agent_start.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ var AgentStartCommand = cli.Command{
599599
},
600600
cli.StringFlag{
601601
Name: "job-signing-algorithm",
602-
Usage: "The algorithm to use when signing pipelines. Must be a valid RF7518 JWA algorithm. Required when using a JWKS, and the given key doesn't have an alg parameter",
602+
Usage: "The algorithm to use when signing pipelines. Must be an algorithm specified in RFC 7518: JWA. Required when using a JWKS, and the given key doesn't have an alg parameter",
603603
EnvVar: "BUILDKITE_PIPELINE_UPLOAD_SIGNING_ALGORITHM",
604604
},
605605
cli.StringFlag{

clicommand/cancel_signal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var (
2929
signalGracePeriodSecondsFlag = cli.IntFlag{
3030
Name: "signal-grace-period-seconds",
3131
Usage: "The number of seconds given to a subprocess to handle being sent ′cancel-signal′. " +
32-
"After this period has elaspsed, SIGKILL will be sent.",
32+
"After this period has elapsed, SIGKILL will be sent.",
3333
EnvVar: "BUILDKITE_SIGNAL_GRACE_PERIOD_SECONDS",
3434
Value: defaultSignalGracePeriod,
3535
}

clicommand/env_unset.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Description:
2626
2727
Examples:
2828
29-
Unsetting the variables ′LLAMA′ and ′ALPACA′)
29+
Unsetting the variables ′LLAMA′ and ′ALPACA′:
3030
3131
$ buildkite-agent env unset LLAMA ALPACA
3232
Unset:

clicommand/lock_acquire.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func lockAcquireFlags() []cli.Flag {
5454
[]cli.Flag{
5555
cli.DurationFlag{
5656
Name: "lock-wait-timeout",
57-
Usage: "If specified, sets a maximum duration to wait for a lock before giving up",
57+
Usage: "Sets a maximum duration to wait for a lock before giving up",
5858
EnvVar: "BUILDKITE_LOCK_WAIT_TIMEOUT",
5959
},
6060
},

clicommand/lock_do.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ Description:
3333
Examples:
3434
3535
#!/bin/bash
36-
if [ $(buildkite-agent lock do llama) = 'do' ] ; then
37-
setup_code()
38-
buildkite-agent lock done llama
39-
fi
40-
41-
`
36+
if [[ $(buildkite-agent lock do llama) == 'do' ]]; then
37+
# your critical section here...
38+
buildkite-agent lock done llama
39+
fi`
4240

4341
type LockDoConfig struct {
4442
// Common config options

clicommand/lock_done.go

+5-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
const lockDoneHelpDescription = `Usage:
1313
14-
buildkite-agent lock release [key]
14+
buildkite-agent lock done [key]
1515
1616
Description:
1717
Completes a do-once lock. This should only be used by the process performing
@@ -23,12 +23,10 @@ Description:
2323
Examples:
2424
2525
#!/bin/bash
26-
if [ $(buildkite-agent lock do llama) = 'do' ] ; then
27-
setup_code()
28-
buildkite-agent lock done llama
29-
fi
30-
31-
`
26+
if [[ $(buildkite-agent lock do llama) == 'do' ]]; then
27+
# your critical section here...
28+
buildkite-agent lock done llama
29+
fi`
3230

3331
type LockDoneConfig struct {
3432
// Common config options

clicommand/lock_get.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ Description:
2727
Examples:
2828
2929
$ buildkite-agent lock get llama
30-
Kuzco
31-
32-
`
30+
Kuzco`
3331

3432
type LockGetConfig struct {
3533
// Common config options

clicommand/lock_release.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ Description:
2424
2525
Examples:
2626
27-
$ token=$(buildkite-agent lock acquire llama)
28-
$ critical_section()
29-
$ buildkite-agent lock release llama "${token}"
30-
31-
`
27+
#!/bin/bash
28+
token=$(buildkite-agent lock acquire llama)
29+
# your critical section here...
30+
buildkite-agent lock release llama "${token}"`
3231

3332
type LockReleaseConfig struct {
3433
// Common config options

0 commit comments

Comments
 (0)