Skip to content

Commit

Permalink
new: Support env vars for proto setup. (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Jul 26, 2024
1 parent 4bcf4c0 commit a58216f
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 55 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Added a new setting to `.prototools`, `settings.builtin-plugins`, that can be used to disable all built-in plugins, or only allow a few select plugins.
- Supports a boolean or list of plugin names.
- All are enabled by default for backwards compatibility.
- Added `PROTO_NO_MODIFY_PROFILE` and `PROTO_NO_MODIFY_PATH` environment variables to `proto setup` (for automated workflows).
- Updated `github://` plugin locators to support monorepos. Append the project name (that tags are prefixed with) to the path: `github://moonrepo/tools/node_tool`
- Merged `proto use` and `proto install` commands. If no arguments are provided to `proto install`, it will install all configured tools.

Expand Down
96 changes: 48 additions & 48 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ reqwest = { version = "0.12.5", default-features = false, features = [
"macos-system-configuration",
] }
rustc-hash = "2.0.0"
schematic = { version = "0.16.5", default-features = false }
schematic = { version = "0.16.6", default-features = false }
semver = { version = "1.0.23", features = ["serde"] }
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/commands/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct CleanArgs {
)]
pub purge_plugins: bool,

#[arg(long, help = "Avoid and force confirm prompts")]
#[arg(long, help = "Avoid and force confirm prompts", env = "PROTO_YES")]
pub yes: bool,
}

Expand Down
Loading

0 comments on commit a58216f

Please sign in to comment.