Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Improve explanations in ok pkg install --help #146

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions cmd/pkg/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ import (
)

var InstallCommand = &cobra.Command{
Use: "install [stackName1, stackName2, ...]",
Short: "Install or update Boilerplate packages",
Use: "install [outputFolder ...]",
Short: "Install or update Boilerplate packages.",
Long: `Install or update Boilerplate packages.

If no arguments are used, the command installs all the packages specified in the package manifest file.

If one or more output folders are specified, the command installs only the packages whose OutputFolder matches the specified folders. (OutputFolder is a field in the package manifest file.)
`,
Examples: `ok install networking
ok install networking my-app
`,
SilenceErrors: true,
RunE: func(cmd *cobra.Command, args []string) error {
err := install.Run(args)
Expand Down