Skip to content

Commit 9a857ae

Browse files
fix(cli): show installed component commands in help text (#1818)
1 parent f839aeb commit 9a857ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cli/cmd/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func runApiCommand(_ *cobra.Command, args []string) error {
9494
response,
9595
)
9696
if err != nil {
97-
return errors.Wrap(err, "unable to send the request")
97+
return errors.Wrap(err, "an error occurred with the request")
9898
}
9999

100100
if err := cli.OutputJSON(*response); err != nil {

cli/cmd/component.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ func (c *cliState) LoadComponents() {
188188
version := component.InstalledVersion()
189189

190190
if version != nil {
191+
c.installedCmd = true
191192
componentCmd := &cobra.Command{
192193
Use: component.Name,
193194
Short: component.Description,

0 commit comments

Comments
 (0)