Skip to content

Commit

Permalink
carlo: implied command dependencies
Browse files Browse the repository at this point in the history
Given build options (cargo workspace options, e.g. `-p my_crate`), the
`upload` command will build before uploading, and given build or upload
options `actvate` will build or upload before activating.

These primary options are mutually exclusive, but may require nested
ArgGroups in the future which are supposed to be supported, perhaps
aided by clap-rs/clap#2621 if resolved. The current constraints and
reuse of shared options is rather crude (see in particular
UploadOptsWrapper).

Introduces some technical debt with regards to server/client parity,
which should be unified under the carol_core crate.
  • Loading branch information
nothingmuch committed May 26, 2023
1 parent 9647a20 commit 9f8757e
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 158 deletions.
18 changes: 18 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/carlo/Cargo.toml
Expand Up @@ -16,3 +16,4 @@ clap = { workspace = true }
serde = { workspace = true }
reqwest = { workspace = true }
wit-component.workspace = true
clap-cargo = { version = "0.10.0", features = [ "cargo_metadata" ] }

0 comments on commit 9f8757e

Please sign in to comment.