Skip to content

Commit

Permalink
Add alias to agent-logs
Browse files Browse the repository at this point in the history
Often I type in service-logs instead of agent-logs, so this
means both are valid, but agent-logs will remain the
reference command.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed May 15, 2023
1 parent 3a60742 commit e746eda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/agent-logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import (

func makeAgentLogs() *cobra.Command {
cmd := &cobra.Command{
Use: "agent-logs",
Short: "Fetch logs from the agent's systemd service",
Use: "agent-logs",
Short: "Fetch logs from the agent's systemd service",
Aliases: []string{"service-logs"},
}

cmd.RunE = runAgentLogsE
Expand Down

0 comments on commit e746eda

Please sign in to comment.