From 1841eb16c6ff079dad4af35550c83a67f4437db0 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 21 Nov 2021 17:08:00 -0800 Subject: [PATCH] Release 0.10.4 (#1031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump version: 0.10.3 → 0.10.4 - Update changelog - Update config test - Update dependencies - Update man page --- CHANGELOG.md | 15 +++++++++++++ Cargo.lock | 58 ++++++++++++++++++++++++++------------------------- Cargo.toml | 5 ++--- man/just.1 | 36 ++++++++++++++++++++------------ src/config.rs | 2 +- 5 files changed, 71 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b5016b..9e06102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,21 @@ Changelog ========= +[0.10.4](https://github.com/casey/just/releases/tag/0.10.4) - 2021-11-21 +------------------------------------------------------------------------ + +### Added +- Add `--dump-format json` (#992) +- Add `quote(s)` function for escaping strings (#1022) +- fmt: check formatting with `--check` (#1001) + +### Misc +- Refactor github actions (#1028) +- Fix readme formatting (#1030) +- Use ps1 extension for pwsh shebangs (#1027) +- Ignore leading byte order mark in source files (#1021) +- Add color to `just --fmt --check` diff (#1015) + [0.10.3](https://github.com/casey/just/releases/tag/0.10.3) - 2021-10-30 ------------------------------------------------------------------------ diff --git a/Cargo.lock b/Cargo.lock index fcef7de..0483dbe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "aho-corasick" version = "0.7.18" @@ -69,9 +71,9 @@ checksum = "52d74260d9bf6944e2208aa46841b4b8f0d7ffc0849a06837b2f510337f86b2b" [[package]] name = "cc" -version = "1.0.70" +version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d26a6ce4b6a484fa3edb70f7efa6fc430fd2b87285fe8b84304fd0936faa0dc0" +checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" [[package]] name = "cfg-if" @@ -116,9 +118,9 @@ dependencies = [ [[package]] name = "ctrlc" -version = "3.2.0" +version = "3.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "377c9b002a72a0b2c1a18c62e2f3864bdfea4a015e3683a96e24aa45dd6c02d1" +checksum = "a19c6cedffdc8c03a3346d723eb20bd85a13362bb96dc2ac000842c6381ec7bf" dependencies = [ "nix", "winapi", @@ -227,7 +229,7 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "just" -version = "0.10.3" +version = "0.10.4" dependencies = [ "ansi_term 0.12.1", "atty", @@ -251,7 +253,6 @@ dependencies = [ "similar", "snafu", "strum", - "strum_macros", "target", "tempfile", "temptree", @@ -275,9 +276,9 @@ checksum = "441225017b106b9f902e97947a6d31e44ebcf274b91bdbfb51e5c477fcd468e5" [[package]] name = "libc" -version = "0.2.103" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6" +checksum = "8521a1b57e76b1ec69af7599e75e38e7b7fad6610f037db8c79b127201b5d119" [[package]] name = "linked-hash-map" @@ -311,9 +312,9 @@ dependencies = [ [[package]] name = "nix" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1e25ee6b412c2a1e3fcb6a4499a5c1bfe7f43e014bdce9a6b6666e5aa2d187" +checksum = "f305c2c2e4c39a82f7bf0bf65fb557f9070ce06781d4f2454295cc34b1c43188" dependencies = [ "bitflags", "cc", @@ -333,9 +334,9 @@ dependencies = [ [[package]] name = "ppv-lite86" -version = "0.2.10" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" +checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba" [[package]] name = "pretty_assertions" @@ -375,18 +376,18 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.29" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d" +checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" dependencies = [ "unicode-xid", ] [[package]] name = "quote" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" dependencies = [ "proc-macro2", ] @@ -515,9 +516,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.68" +version = "1.0.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f690853975602e1bfe1ccbf50504d67174e3bcf340f23b5ea9992e0587a52d8" +checksum = "063bf466a64011ac24040a49009724ee60a57da1b437617ceb32e53ad61bfb19" dependencies = [ "itoa", "ryu", @@ -563,9 +564,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "structopt" -version = "0.3.23" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf9d950ef167e25e0bdb073cf1d68e9ad2795ac826f2f3f59647817cf23c0bfa" +checksum = "40b9788f4202aa75c240ecc9c15c65185e6a39ccdeb0fd5d008b98825464c87c" dependencies = [ "clap", "lazy_static", @@ -574,9 +575,9 @@ dependencies = [ [[package]] name = "structopt-derive" -version = "0.4.16" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134d838a2c9943ac3125cf6df165eda53493451b719f3255b2a26b85f772d0ba" +checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" dependencies = [ "heck", "proc-macro-error", @@ -587,30 +588,31 @@ dependencies = [ [[package]] name = "strum" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" +checksum = "cae14b91c7d11c9a851d3fbc80a963198998c2a64eec840477fa92d8ce9b70bb" dependencies = [ "strum_macros", ] [[package]] name = "strum_macros" -version = "0.22.0" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" +checksum = "5bb0dc7ee9c15cea6199cde9a127fa16a4c5819af85395457ad72d68edc85a38" dependencies = [ "heck", "proc-macro2", "quote", + "rustversion", "syn", ] [[package]] name = "syn" -version = "1.0.77" +version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5239bc68e0fef57495900cfea4e8dc75596d9a319d7e16b1e0a440d24e6fe0a0" +checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index f16b1ab..108db0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "just" -version = "0.10.3" +version = "0.10.4" description = "🤖 Just a command runner" authors = ["Casey Rodarmor "] license = "CC0-1.0" @@ -34,8 +34,7 @@ serde = { version = "1.0.130", features = ["derive", "rc"] } serde_json = "1.0.68" similar = { version = "2.1.0", features = ["unicode"] } snafu = "0.6.0" -strum = { version = "0.22.0", features = ["derive"] } -strum_macros = "0.22.0" +strum = { version = "0.23.0", features = ["derive"] } target = "2.0.0" tempfile = "3.0.0" typed-arena = "2.0.1" diff --git a/man/just.1 b/man/just.1 index da90016..593e0d2 100644 --- a/man/just.1 +++ b/man/just.1 @@ -1,9 +1,9 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. -.TH JUST "1" "October 2021" "just 0.10.3" "Just Manual" +.TH JUST "1" "November 2021" "just 0.10.4" "Just Manual" .SH NAME just \- save and run commands .SH DESCRIPTION -just 0.10.3 +just 0.10.4 \- Please see https://github.com/casey/just for more information. .SS "USAGE:" .IP @@ -13,10 +13,14 @@ just [FLAGS] [OPTIONS] [\-\-] [ARGUMENTS]... \fB\-\-changelog\fR Print changelog .TP +\fB\-\-check\fR +Run `\-\-fmt` in 'check' mode. Exits with 0 if justfile is formatted +correctly. Exits with 1 and prints a diff if formatting is required. +.TP \fB\-\-choose\fR -Select one or more recipes to run using a binary. If `\-\-chooser` is not -passed the chooser defaults to the value of $JUST_CHOOSER, falling back -to `fzf` +Select one or more recipes to run using a binary. If `\-\-chooser` is +not passed the chooser defaults to the value of $JUST_CHOOSER, +falling back to `fzf` .TP \fB\-\-clear\-shell\-args\fR Clear shell arguments @@ -25,11 +29,11 @@ Clear shell arguments Print what just would do without doing it .TP \fB\-\-dump\fR -Print entire justfile +Print justfile .TP \fB\-e\fR, \fB\-\-edit\fR -Edit justfile with editor given by $VISUAL or $EDITOR, falling back to -`vim` +Edit justfile with editor given by $VISUAL or $EDITOR, falling back +to `vim` .TP \fB\-\-evaluate\fR Evaluate and print all variables. If a variable name is given as an @@ -57,7 +61,8 @@ Don't highlight echoed recipe lines in bold Suppress all output .TP \fB\-\-shell\-command\fR -Invoke with the shell used to run recipe lines and backticks +Invoke with the shell used to run recipe lines and +backticks .TP \fB\-\-summary\fR List names of available recipes @@ -95,16 +100,21 @@ Run an arbitrary command with the working directory, `.env`, overrides, and expo .HP \fB\-\-completions\fR .IP -Print shell completion script for [possible values: zsh, bash, fish, powershell, -elvish] +Print shell completion script for [possible values: zsh, bash, fish, +powershell, elvish] .HP -\fB\-\-dotenv\-filename\fR +\fB\-\-dotenv\-filename\fR .IP Search for environment file named instead of `.env` .HP -\fB\-\-dotenv\-path\fR +\fB\-\-dotenv\-path\fR .IP Load environment file at instead of searching for one +.HP +\fB\-\-dump\-format\fR +.TP +Dump justfile as [default: just] +[possible values: just, json] .TP \fB\-f\fR, \fB\-\-justfile\fR Use as justfile diff --git a/src/config.rs b/src/config.rs index 44731cc..4932c2e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -627,7 +627,7 @@ mod tests { // have proper tests for all the flags, but this will do for now. #[test] fn help() { - const EXPECTED_HELP: &str = "just 0.10.3 + const EXPECTED_HELP: &str = "just 0.10.4 Casey Rodarmor 🤖 Just a command runner \ - https://github.com/casey/just