From e6c37aacd1037bdcc89c5337da0ec08762cb1729 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 13 Jun 2024 19:57:12 -0700 Subject: [PATCH] Release 1.29.0 (#2155) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump version: 1.28.0 → 1.29.0 - Update changelog - Update changelog contributor credits - Update dependencies - Update version references in readme - Fix zsh completion script --- CHANGELOG.md | 23 ++++++++++++++++++ Cargo.lock | 58 ++++++++++++++++++++++---------------------- Cargo.toml | 2 +- README.md | 6 ++--- src/completions.rs | 2 +- tests/completions.rs | 6 ++++- 6 files changed, 62 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4da782..bc5b6bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,29 @@ Changelog ========= +[1.29.0](https://github.com/casey/just/releases/tag/1.29.0) - 2024-06-13 +------------------------------------------------------------------------ + +### Added +- Add [positional-arguments] attribute ([#2151](https://github.com/casey/just/pull/2151)) +- Use `--justfile` in Fish shell completions ([#2148](https://github.com/casey/just/pull/2148) by [rubot](https://github.com/rubot)) +- Add `is_dependency()` function ([#2139](https://github.com/casey/just/pull/2139) by [neunenak](https://github.com/neunenak)) +- Allow printing nu completion script with `just --completions nushell` ([#2140](https://github.com/casey/just/pull/2140)) +- Add `[ATTRIBUTE: VALUE]` shorthand ([#2136](https://github.com/casey/just/pull/2136) by [neunenak](https://github.com/neunenak)) +- Allow unexporting environment variables ([#2098](https://github.com/casey/just/pull/2098) by [neunenak](https://github.com/neunenak)) + +### Fixed +- Load environment file from dotenv-path relative to working directory ([#2152](https://github.com/casey/just/pull/2152)) +- Fix `fzf` chooser preview with space-separated module paths ([#2141](https://github.com/casey/just/pull/2141)) + +### Misc +- Improve argument parsing and error handling for submodules ([#2154](https://github.com/casey/just/pull/2154)) +- Document shell expanded string defaults ([#2153](https://github.com/casey/just/pull/2153)) +- Test bare bash path in shebang on windows ([#2144](https://github.com/casey/just/pull/2144)) +- Test shell not found error messages ([#2145](https://github.com/casey/just/pull/2145)) +- Refactor evaluator ([#2138](https://github.com/casey/just/pull/2138) by [neunenak](https://github.com/neunenak)) +- Fix man page generation in release workflow ([#2132](https://github.com/casey/just/pull/2132)) + [1.28.0](https://github.com/casey/just/releases/tag/1.28.0) - 2024-06-05 ------------------------------------------------------------------------ diff --git a/Cargo.lock b/Cargo.lock index 86be2a7..6d5adb6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -174,9 +174,9 @@ checksum = "e0ec6b951b160caa93cc0c7b209e5a3bff7aae9062213451ac99493cd844c239" [[package]] name = "cc" -version = "1.0.98" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f" +checksum = "96c51067fd44124faa7f870b4b1c969379ad32b2ba805aa959430ceaa384f695" [[package]] name = "cfg-if" @@ -221,9 +221,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.4" +version = "4.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" +checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f" dependencies = [ "clap_builder", "clap_derive", @@ -231,9 +231,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.2" +version = "4.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" +checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f" dependencies = [ "anstream", "anstyle", @@ -244,18 +244,18 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.5.2" +version = "4.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd79504325bf38b10165b02e89b4347300f855f273c4cb30c4a3209e6583275e" +checksum = "d2020fa13af48afc65a9a87335bda648309ab3d154cd03c7ff95b378c7ed39c4" dependencies = [ - "clap 4.5.4", + "clap 4.5.7", ] [[package]] name = "clap_derive" -version = "4.5.4" +version = "4.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" +checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -265,17 +265,17 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" [[package]] name = "clap_mangen" -version = "0.2.20" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1dd95b5ebb5c1c54581dd6346f3ed6a79a3eef95dd372fc2ac13d535535300e" +checksum = "74b70fc13e60c0e1d490dc50eb73a749be6d81f4ef03783df1d9b7b0c62bc937" dependencies = [ - "clap 4.5.4", + "clap 4.5.7", "roff", ] @@ -600,13 +600,13 @@ dependencies = [ [[package]] name = "just" -version = "1.28.0" +version = "1.29.0" dependencies = [ "ansi_term", "blake3", "camino", "chrono", - "clap 4.5.4", + "clap 4.5.7", "clap_complete", "clap_mangen", "cradle", @@ -685,9 +685,9 @@ checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "memchr" -version = "2.7.2" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memmap2" @@ -898,13 +898,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.4" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.6", + "regex-automata 0.4.7", "regex-syntax", ] @@ -916,9 +916,9 @@ checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", @@ -927,9 +927,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "roff" @@ -1244,9 +1244,9 @@ dependencies = [ [[package]] name = "utf8parse" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" diff --git a/Cargo.toml b/Cargo.toml index f497cc8..ca5170d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "just" -version = "1.28.0" +version = "1.29.0" authors = ["Casey Rodarmor "] autotests = false categories = ["command-line-utilities", "development-tools"] diff --git a/README.md b/README.md index 41adab6..5253c8e 100644 --- a/README.md +++ b/README.md @@ -997,7 +997,7 @@ $ just test foo "bar baz" ``` Positional arguments may also be turned on on a per-recipe basis with the -`[positional-arguments]` attributemaster: +`[positional-arguments]` attribute1.29.0: ```just [positional-arguments] @@ -1701,7 +1701,7 @@ Recipes may be annotated with attributes that change their behavior. | `[no-cd]`1.9.0 | Don't change directory before executing recipe. | | `[no-exit-message]`1.7.0 | Don't print an error message if recipe fails. | | `[no-quiet]`1.23.0 | Override globally quiet recipes and always echo out the recipe. | -| `[positional-arguments]`master | Turn on [positional arguments](#positional-arguments) for this recipe. | +| `[positional-arguments]`1.29.0 | Turn on [positional arguments](#positional-arguments) for this recipe. | | `[private]`1.10.0 | See [Private Recipes](#private-recipes). | | `[unix]`1.8.0 | Enable recipe on Unixes. (Includes MacOS). | | `[windows]`1.8.0 | Enable recipe on Windows. | @@ -2075,7 +2075,7 @@ a $A $B=`echo $A`: When [export](#export) is set, all `just` variables are exported as environment variables. -#### Unexporting Environment Variablesmaster +#### Unexporting Environment Variables1.29.0 Environment variables can be unexported with the `unexport keyword`: diff --git a/src/completions.rs b/src/completions.rs index 3d23d5f..439a172 100644 --- a/src/completions.rs +++ b/src/completions.rs @@ -137,7 +137,7 @@ complete -c just -a '(__fish_just_complete_recipes)' const ZSH_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[ ( - r#" _arguments "${_arguments_options[@]}" \"#, + r#" _arguments "${_arguments_options[@]}" : \"#, r" local common=(", ), ( diff --git a/tests/completions.rs b/tests/completions.rs index 9de2787..9380223 100644 --- a/tests/completions.rs +++ b/tests/completions.rs @@ -33,6 +33,10 @@ fn replacements() { .args(["--completions", shell]) .output() .unwrap(); - assert!(output.status.success()); + assert!( + output.status.success(), + "shell completion generation for {shell} failed: {}", + output.status + ); } }