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

Commit febe8bc

Browse files
Merge pull request #193 from secrethub/feature/aws-ls-help
Mention AWS in service aws ls --help
2 parents b752218 + 7864ec6 commit febe8bc

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
@@ -21,6 +21,7 @@ type ServiceLsCommand struct {
2121
newClient newClientFunc
2222
newServiceTable func(t TimeFormatter) serviceTable
2323
filters []func(service *api.Service) bool
24+
help string
2425
}
2526

2627
// NewServiceLsCommand creates a new ServiceLsCommand.
@@ -29,6 +30,7 @@ func NewServiceLsCommand(io ui.IO, newClient newClientFunc) *ServiceLsCommand {
2930
io: io,
3031
newClient: newClient,
3132
newServiceTable: newKeyServiceTable,
33+
help: "List all service accounts in a given repository.",
3234
}
3335
}
3436

@@ -40,12 +42,13 @@ func NewServiceAWSLsCommand(io ui.IO, newClient newClientFunc) *ServiceLsCommand
4042
filters: []func(service *api.Service) bool{
4143
isAWSService,
4244
},
45+
help: "List all AWS service accounts in a given repository.",
4346
}
4447
}
4548

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

0 commit comments

Comments
 (0)