Skip to content

Commit cd516b8

Browse files
committed
Hide the --running --error and --aborted CLI flags from the content build run subcommand
1 parent f33f14b commit cd516b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Added the name of the environment variables to the help output for those options that
1111
use environment variables as a default value.
1212
- Added support for deploying Shiny Express applications.
13-
- Added `--retry` and `--running` flags to the `rsconnect content build run` command.
13+
- Added a `--retry` flag to the `rsconnect content build run` command to re-run
14+
builds for all content in the NEEDS_BUILD, ABORTED, ERROR, or RUNNING state.
1415

1516
### Changed
1617
- Improved the error and warning outputs when options conflict by providing the source

rsconnect/main.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,14 +2384,13 @@ def get_build_logs(
23842384
default=1,
23852385
help="Defines the number of builds that can run concurrently. Defaults to 1.",
23862386
)
2387-
@click.option("--aborted", is_flag=True, help="Build content that is in the ABORTED state.")
2388-
@click.option("--error", is_flag=True, help="Build content that is in the ERROR state.")
2389-
@click.option("--running", is_flag=True, help="Build content that is in the RUNNING state.")
2387+
@click.option("--aborted", is_flag=True, hidden=True, help="Build content that is in the ABORTED state.")
2388+
@click.option("--error", is_flag=True, hidden=True, help="Build content that is in the ERROR state.")
2389+
@click.option("--running", is_flag=True, hidden=True, help="Build content that is in the RUNNING state.")
23902390
@click.option(
23912391
"--retry",
23922392
is_flag=True,
2393-
help="Build all content that is in the NEEDS_BUILD, ABORTED, ERROR, or RUNNING state. "
2394-
+ "Shorthand for `--aborted --error --running`.",
2393+
help="Build all content that is in the NEEDS_BUILD, ABORTED, ERROR, or RUNNING state.",
23952394
)
23962395
@click.option("--all", is_flag=True, help="Build all content, even if it is already marked as COMPLETE.")
23972396
@click.option(

0 commit comments

Comments
 (0)