Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,11 @@ Or provide an explicit path:
luca run --file pipelines/release.yml
```

Pass parameter values at runtime with `--param`:
Pass parameter values at runtime with `--param` (or its short form `-p`):

```bash
luca run build --param configuration=release --param upload=true
luca run build -p configuration=release -p upload=true
```

Preview what would happen without executing anything:
Expand Down
7 changes: 4 additions & 3 deletions Sources/LucaCLI/Commands/RunCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ struct RunCommand: AsyncParsableCommand {
4. ./pipelines/<name>.params

Use --params-file to specify an explicit params file path.
Values from --param override values from the params file.
Values from --param/-p override values from the params file.

Examples:
luca run ci
luca run deploy --dry-run
luca run --file pipelines/release.yml
luca run ci --params-file ./ci.params.yml
luca run build -p flavor=release -p upload=true
"""
)

Expand Down Expand Up @@ -79,12 +80,12 @@ struct RunCommand: AsyncParsableCommand {
))
var dryRun: Bool = false

@Option(name: .customLong("param"), help: ArgumentHelp(
@Option(name: [.customLong("param"), .customShort("p")], help: ArgumentHelp(
"Set a pipeline parameter value.",
discussion: """
Provide KEY=VALUE pairs to satisfy parameters declared in the pipeline's `parameters:` block.
May be repeated for multiple parameters.
Example: --param flavor=release --param upload=true
Example: --param flavor=release -p upload=true
""",
valueName: "KEY=VALUE"
))
Expand Down