Skip to content

Commit 0c87157

Browse files
pipelines: updated descriptions and inconsistencies (#3272)
## Changes - Added new deploy and open descriptions - made [flags] [KEY] be consistent - added [KEY] to open: this is unlike Bundle implementation but is more consistent with the other functions - specified that run, dryrun, and open will auto-select when there is only one pipeline ## Why Bugbash feedback and consistency --------- Co-authored-by: Jeffery Cheng <[email protected]>
1 parent 0abdecc commit 0c87157

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

cmd/pipelines/deploy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func deployCommand() *cobra.Command {
1919
cmd := &cobra.Command{
2020
Use: "deploy",
2121
Short: "Deploy pipelines",
22+
Long: `Deploy pipelines by uploading all files defined in the project to the target workspace, and creating or updating the pipelines defined in the workspace.`,
2223
Args: root.NoArgs,
2324
}
2425

cmd/pipelines/dry_run.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ import (
2323

2424
func dryRunCommand() *cobra.Command {
2525
cmd := &cobra.Command{
26-
Use: "dry-run [KEY]",
26+
Use: "dry-run [flags] [KEY]",
2727
Short: "Validate correctness of the pipeline's graph",
2828
Long: `Validates correctness of the pipeline's graph, identified by KEY. Does not materialize or publish any datasets.
29-
The KEY is the unique identifier of the pipeline to run.`,
29+
KEY is the unique name of the pipeline to dry run, as defined in its YAML file.
30+
If there is only one pipeline in the project, KEY is optional and the pipeline will be auto-selected.`,
3031
}
3132

3233
var noWait bool

cmd/pipelines/open.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,12 @@ func resolveOpenArgument(ctx context.Context, b *bundle.Bundle, args []string) (
6363

6464
func openCommand() *cobra.Command {
6565
cmd := &cobra.Command{
66-
Use: "open",
66+
Use: "open [flags] [KEY]",
6767
Short: "Open a pipeline in the browser",
68-
Args: root.MaximumNArgs(1),
68+
Long: `Open a pipeline in the browser, identified by KEY.
69+
KEY is the unique name of the pipeline to open, as defined in its YAML file.
70+
If there is only one pipeline in the project, KEY is optional and the pipeline will be auto-selected.`,
71+
Args: root.MaximumNArgs(1),
6972
}
7073

7174
var forcePull bool

cmd/pipelines/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ func runCommand() *cobra.Command {
2727
Use: "run [flags] [KEY]",
2828
Short: "Run a pipeline",
2929
Long: `Run the pipeline identified by KEY.
30-
The KEY is the unique identifier of the pipeline to run.`,
30+
KEY is the unique name of the pipeline to run, as defined in its YAML file.
31+
If there is only one pipeline in the project, KEY is optional and the pipeline will be auto-selected.`,
3132
}
3233

3334
var refreshAll bool

0 commit comments

Comments
 (0)