Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit f8d62d0

Browse files
committed
Mention AWS in service aws ls --help
1 parent 4c4b9a4 commit f8d62d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

internals/secrethub/service_ls.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type ServiceLsCommand struct {
1919
newClient newClientFunc
2020
newServiceTable func(t TimeFormatter) serviceTable
2121
filters []func(service *api.Service) bool
22+
help string
2223
}
2324

2425
// NewServiceLsCommand creates a new ServiceLsCommand.
@@ -27,6 +28,7 @@ func NewServiceLsCommand(io ui.IO, newClient newClientFunc) *ServiceLsCommand {
2728
io: io,
2829
newClient: newClient,
2930
newServiceTable: newKeyServiceTable,
31+
help: "List all service accounts in a given repository.",
3032
}
3133
}
3234

@@ -38,12 +40,13 @@ func NewServiceAWSLsCommand(io ui.IO, newClient newClientFunc) *ServiceLsCommand
3840
filters: []func(service *api.Service) bool{
3941
isAWSService,
4042
},
43+
help: "List all AWS service accounts in a given repository.",
4144
}
4245
}
4346

4447
// Register registers the command, arguments and flags on the provided Registerer.
4548
func (cmd *ServiceLsCommand) Register(r Registerer) {
46-
clause := r.Command("ls", "List all service accounts in a given repository.")
49+
clause := r.Command("ls", cmd.help)
4750
clause.Alias("list")
4851
clause.Arg("repo-path", "The path to the repository to list services for (<namespace>/<repo>).").Required().SetValue(&cmd.repoPath)
4952
clause.Flag("quiet", "Only print service IDs.").Short('q').BoolVar(&cmd.quiet)

0 commit comments

Comments
 (0)