Skip to content

Commit

Permalink
fixup: Add more long help text
Browse files Browse the repository at this point in the history
  • Loading branch information
briancain committed Feb 21, 2024
1 parent b411fdf commit 065e600
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
12 changes: 10 additions & 2 deletions internal/commands/waypoint/actionconfig/action_config.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
package actionconfig

import "github.com/hashicorp/hcp/internal/pkg/cmd"
import (
"github.com/hashicorp/hcp/internal/pkg/cmd"
"github.com/hashicorp/hcp/internal/pkg/heredoc"
)

func NewCmdActionConfig(ctx *cmd.Context) *cmd.Command {
cmd := &cmd.Command{
Name: "action-config",
ShortHelp: "Manage action configuration options for HCP Waypoint.",
LongHelp: "Manage action configuration options for HCP Waypoint.",
LongHelp: heredoc.New(ctx.IO).Must(`
Manage all action configuration options for HCP Waypoint. An action
configuration is a set of options that define how an action is executed. This
includes the action request type, and the action name. The action
configuration is used to launch action runs depending on the Request type.
`),
}

cmd.AddChild(NewCmdCreate(ctx))
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/waypoint/actionconfig/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func showActionConfig(c *cmd.Command, args []string, opts *ShowOpts) error {
// latestRun := respPayload.LatestRun
// totalRuns := respPayload.TotalRuns

// TODO(briancain): add a displayer.go
// TODO(briancain): https://github.com/hashicorp/hcp/issues/16

return nil
}
5 changes: 3 additions & 2 deletions internal/commands/waypoint/waypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package waypoint
import (
"github.com/hashicorp/hcp/internal/commands/waypoint/actionconfig"
"github.com/hashicorp/hcp/internal/pkg/cmd"
"github.com/hashicorp/hcp/internal/pkg/heredoc"
)

func NewCmdWaypoint(ctx *cmd.Context) *cmd.Command {
cmd := &cmd.Command{
Name: "waypoint",
ShortHelp: "Manage Waypoint.",
LongHelp: "Managing HCP Waypoint with CLI commands.",
Examples: []cmd.Example{},
LongHelp: heredoc.New(ctx.IO).Must(`The {{ Bold "hcp waypoint" }} command group allows users to manage HCP Waypoint resources through the CLI.
These commands allow the user to interact with their HCP Waypoint instance to manage their application deployment process.`),
}

cmd.AddChild(actionconfig.NewCmdActionConfig(ctx))
Expand Down

0 comments on commit 065e600

Please sign in to comment.