Skip to content

Commit 1b973ad

Browse files
author
Mateusz Kuziemko
authored
Improve help for action logs (#728)
1 parent ea32824 commit 1b973ad

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

cmd/cli/cmd/action/logs.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ func NewLogs() *cobra.Command {
2525

2626
cmd.Example = heredoc.WithCLIName(`
2727
# Print the logs of an Action:
28-
<cli> logs example
28+
<cli> action logs example
2929
3030
# Follow the logs of an Action:
31-
<cli> logs example --follow
31+
<cli> action logs example --follow
3232
3333
# Print the logs of single container in a pod
34-
<cli> logs example step-pod -c step-pod-container
34+
<cli> action logs example step-pod -c step-pod-container
3535
3636
# Print the logs of an Action's step:
37-
<cli> logs example step-pod
37+
<cli> action logs example step-pod
3838
3939
# Print the logs of the latest executed Action:
40-
<cli> logs @latest
40+
<cli> action logs @latest
4141
`, cli.Name)
4242

4343
client.AddKubectlFlagsToCmd(cmd)

cmd/cli/docs/capact_action_logs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ capact action logs ACTION [POD] [flags]
2222

2323
```
2424
# Print the logs of an Action:
25-
capact logs example
25+
capact action logs example
2626
2727
# Follow the logs of an Action:
28-
capact logs example --follow
28+
capact action logs example --follow
2929
3030
# Print the logs of single container in a pod
31-
capact logs example step-pod -c step-pod-container
31+
capact action logs example step-pod -c step-pod-container
3232
3333
# Print the logs of an Action's step:
34-
capact logs example step-pod
34+
capact action logs example step-pod
3535
3636
# Print the logs of the latest executed Action:
37-
capact logs @latest
37+
capact action logs @latest
3838
3939
```
4040

0 commit comments

Comments
 (0)