From 84f8a1f81a7324c262461e82bd2c3da7c53d2aa4 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Tue, 20 Jul 2021 18:14:15 -0400 Subject: [PATCH 1/3] fix `nomad alloc signal` help message --- command/alloc_signal.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/alloc_signal.go b/command/alloc_signal.go index 8e083d4a9741..7cf4c7545bf3 100644 --- a/command/alloc_signal.go +++ b/command/alloc_signal.go @@ -15,7 +15,7 @@ type AllocSignalCommand struct { func (a *AllocSignalCommand) Help() string { helpText := ` -Usage: nomad alloc signal [options] +Usage: nomad alloc signal [options] signal an existing allocation. This command is used to signal a specific alloc and its subtasks. If no task is provided then all of the allocations subtasks @@ -35,8 +35,8 @@ Signal Specific Options: Specify the signal that the selected tasks should receive. -task - Specify the individual task that will receive the signal. If task name is given - with both an argument and the '-task' option, preference is given to the '-task' + Specify the individual task that will receive the signal. If task name is given + with both an argument and the '-task' option, preference is given to the '-task' option. -verbose From 2aa05ae9e6dc5d60dec57003969d5abde46b8679 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Tue, 20 Jul 2021 18:19:56 -0400 Subject: [PATCH 2/3] changelog: add entry for 10917 --- .changelog/10917.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/10917.txt diff --git a/.changelog/10917.txt b/.changelog/10917.txt new file mode 100644 index 000000000000..ea4cbf286952 --- /dev/null +++ b/.changelog/10917.txt @@ -0,0 +1,3 @@ +```release-note:bug +cli: Fixed the help message for the `nomad alloc signal` command +``` From af8f403bd1d436c6b358a3967f16ed030c2229e7 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Wed, 21 Jul 2021 10:40:20 -0400 Subject: [PATCH 3/3] add default signal to `nomad alloc signal` command --- command/alloc_signal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/alloc_signal.go b/command/alloc_signal.go index 7cf4c7545bf3..70b94991223f 100644 --- a/command/alloc_signal.go +++ b/command/alloc_signal.go @@ -17,7 +17,7 @@ func (a *AllocSignalCommand) Help() string { helpText := ` Usage: nomad alloc signal [options] - signal an existing allocation. This command is used to signal a specific alloc + Signal an existing allocation. This command is used to signal a specific alloc and its subtasks. If no task is provided then all of the allocations subtasks will receive the signal. @@ -32,7 +32,7 @@ General Options: Signal Specific Options: -s - Specify the signal that the selected tasks should receive. + Specify the signal that the selected tasks should receive. Defaults to SIGKILL. -task Specify the individual task that will receive the signal. If task name is given