Skip to content

Commit cf31413

Browse files
authored
Release 1.27.0 (#2089)
- Bump version: 1.26.0 → 1.27.0 - Update changelog - Update changelog contributor credits - Update dependencies - Update man page - Update version references in readme
1 parent dcbd07f commit cf31413

File tree

5 files changed

+119
-35
lines changed

5 files changed

+119
-35
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,63 @@
11
Changelog
22
=========
33

4+
[1.27.0](https://github.com/casey/just/releases/tag/1.27.0) - 2024-05-25
5+
------------------------------------------------------------------------
6+
7+
### Changed
8+
- Use cache dir for temporary files ([#2067](https://github.com/casey/just/pull/2067))
9+
10+
### Added
11+
- Add `[doc]` attribute to set and suppress documentation comments ([#2050](https://github.com/casey/just/pull/2050) by [neunenak](https://github.com/neunenak))
12+
- Add source_file() and source_directory() functions ([#2088](https://github.com/casey/just/pull/2088))
13+
- Add recipe groups ([#1842](https://github.com/casey/just/pull/1842) by [neunenak](https://github.com/neunenak))
14+
- Add shell() function for running external commands ([#2047](https://github.com/casey/just/pull/2047) by [gyreas](https://github.com/gyreas))
15+
- Add `--global-justfile` flag ([#1846](https://github.com/casey/just/pull/1846) by [neunenak](https://github.com/neunenak))
16+
- Add shell-expanded strings ([#2055](https://github.com/casey/just/pull/2055))
17+
- Add `encode_uri_component` function ([#2052](https://github.com/casey/just/pull/2052) by [laniakea64](https://github.com/laniakea64))
18+
- Add `choose` function for generating random strings ([#2049](https://github.com/casey/just/pull/2049) by [laniakea64](https://github.com/laniakea64))
19+
- Add predefined constants ([#2054](https://github.com/casey/just/pull/2054))
20+
- Allow setting some command-line options with environment variables ([#2044](https://github.com/casey/just/pull/2044) by [neunenak](https://github.com/neunenak))
21+
- Add prepend() function ([#2045](https://github.com/casey/just/pull/2045) by [gyreas](https://github.com/gyreas))
22+
- Add append() function ([#2046](https://github.com/casey/just/pull/2046) by [gyreas](https://github.com/gyreas))
23+
- Add --man subcommand ([#2041](https://github.com/casey/just/pull/2041))
24+
- Make `dotenv-path` relative to working directory ([#2040](https://github.com/casey/just/pull/2040))
25+
- Add `assert` expression ([#1845](https://github.com/casey/just/pull/1845) by [de1iza](https://github.com/de1iza))
26+
- Add 'allow-duplicate-variables' setting ([#1922](https://github.com/casey/just/pull/1922) by [Mijago](https://github.com/Mijago))
27+
28+
### Fixed
29+
- List modules in source order with `--unsorted` ([#2085](https://github.com/casey/just/pull/2085))
30+
- Show submodule recipes in --choose ([#2069](https://github.com/casey/just/pull/2069))
31+
- Allow multiple imports of the same file in different modules ([#2065](https://github.com/casey/just/pull/2065))
32+
- Fix submodule recipe listing indentation ([#2063](https://github.com/casey/just/pull/2063))
33+
- Pass command as first argument to `shell` ([#2061](https://github.com/casey/just/pull/2061))
34+
- Allow shell expanded strings in mod and import paths ([#2059](https://github.com/casey/just/pull/2059))
35+
- Run imported recipes in root justfile with correct working directory ([#2056](https://github.com/casey/just/pull/2056))
36+
- Fix output `\r\n` stripping ([#2035](https://github.com/casey/just/pull/2035))
37+
38+
### Misc
39+
- Forbid whitespace in shell-expanded string prefixes ([#2083](https://github.com/casey/just/pull/2083))
40+
- Add Debian and Ubuntu install instructions to readme ([#2072](https://github.com/casey/just/pull/2072))
41+
- Remove snap installation instructions from readme ([#2070](https://github.com/casey/just/pull/2070))
42+
- Fallback to wget in install script if curl isn't available([#1913](https://github.com/casey/just/pull/1913) by [tgross35](https://github.com/tgross35))
43+
- Use std::io::IsTerminal instead of atty crate ([#2066](https://github.com/casey/just/pull/2066))
44+
- Improve `shell()` documentation ([#2060](https://github.com/casey/just/pull/2060) by [laniakea64](https://github.com/laniakea64))
45+
- Add bash completion for snap ([#2058](https://github.com/casey/just/pull/2058) by [albertodonato](https://github.com/albertodonato))
46+
- Refactor list subcommand ([#2062](https://github.com/casey/just/pull/2062))
47+
- Document working directory ([#2053](https://github.com/casey/just/pull/2053))
48+
- Replace FunctionContext with Evaluator ([#2048](https://github.com/casey/just/pull/2048))
49+
- Update clap to version 4 ([#1924](https://github.com/casey/just/pull/1924) by [poliorcetics](https://github.com/poliorcetics))
50+
- Cleanup ([#2026](https://github.com/casey/just/pull/2026) by [adamnemecek](https://github.com/adamnemecek))
51+
- Increase --list maximum alignable width from 30 to 50 ([#2039](https://github.com/casey/just/pull/2039))
52+
- Document using `env -S` ([#2038](https://github.com/casey/just/pull/2038))
53+
- Update line continuation documentation ([#1998](https://github.com/casey/just/pull/1998) by [laniakea64](https://github.com/laniakea64))
54+
- Add example using GNU parallel to run tasks in concurrently ([#1915](https://github.com/casey/just/pull/1915) by [amarao](https://github.com/amarao))
55+
- Placate clippy: use `clone_into` ([#2037](https://github.com/casey/just/pull/2037))
56+
- Use --command-color when printing shebang recipe commands ([#1911](https://github.com/casey/just/pull/1911) by [avi-cenna](https://github.com/avi-cenna))
57+
- Document how to use watchexec to re-run recipes when files change ([#2036](https://github.com/casey/just/pull/2036))
58+
- Update VS Code extensions in readme ([#2034](https://github.com/casey/just/pull/2034))
59+
- Add rust:just repology package table to readme ([#2032](https://github.com/casey/just/pull/2032))
60+
461
[1.26.0](https://github.com/casey/just/releases/tag/1.26.0) - 2024-05-13
562
------------------------------------------------------------------------
663

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "just"
3-
version = "1.26.0"
3+
version = "1.27.0"
44
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
55
autotests = false
66
categories = ["command-line-utilities", "development-tools"]

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ sequence processing takes place after unindentation. The unindentation
12611261
algorithm does not take escape-sequence produced whitespace or newlines into
12621262
account.
12631263

1264-
Strings prefixed with `x` are shell expanded<sup>master</sup>:
1264+
Strings prefixed with `x` are shell expanded<sup>1.27.0</sup>:
12651265

12661266
```justfile
12671267
foobar := x'~/$FOO/${BAR}'
@@ -1336,7 +1336,7 @@ file.
13361336

13371337
#### External Commands
13381338

1339-
- `shell(command, args...)`<sup>master</sup> returns the standard output of shell script
1339+
- `shell(command, args...)`<sup>1.27.0</sup> returns the standard output of shell script
13401340
`command` with zero or more positional arguments `args`. The shell used to
13411341
interpret `command` is the same shell that is used to evaluate recipe lines,
13421342
and can be changed with `set shell := […]`.
@@ -1443,9 +1443,9 @@ script:
14431443

14441444
#### Source and Source Directory
14451445

1446-
- `source()`<sup>master</sup> - Retrieves the path of the current source file.
1446+
- `source()`<sup>1.27.0</sup> - Retrieves the path of the current source file.
14471447

1448-
- `source_directory()`<sup>master</sup> - Retrieves the path of the parent directory of the
1448+
- `source_directory()`<sup>1.27.0</sup> - Retrieves the path of the parent directory of the
14491449
current source file.
14501450

14511451
`source()` and `source_directory()` behave the same as `justfile()` and
@@ -1487,12 +1487,12 @@ The process ID is: 420
14871487

14881488
#### String Manipulation
14891489

1490-
- `append(suffix, s)`<sup>master</sup> Append `suffix` to whitespace-separated
1490+
- `append(suffix, s)`<sup>1.27.0</sup> Append `suffix` to whitespace-separated
14911491
strings in `s`. `append('/src', 'foo bar baz')``'foo/src bar/src baz/src'`
1492-
- `prepend(prefix, s)`<sup>master</sup> Prepend `prefix` to
1492+
- `prepend(prefix, s)`<sup>1.27.0</sup> Prepend `prefix` to
14931493
whitespace-separated strings in `s`. `prepend('src/', 'foo bar baz')`
14941494
`'src/foo src/bar src/baz'`
1495-
- `encode_uri_component(s)`<sup>master</sup> - Percent-encode characters in `s`
1495+
- `encode_uri_component(s)`<sup>1.27.0</sup> - Percent-encode characters in `s`
14961496
except `[A-Za-z0-9_.!~*'()-]`, matching the behavior of the
14971497
[JavaScript `encodeURIComponent` function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent).
14981498
- `quote(s)` - Replace all single quotes with `'\''` and prepend and append
@@ -1587,7 +1587,7 @@ which will halt execution.
15871587

15881588
#### Random
15891589

1590-
- `choose(n, alphabet)`<sup>master</sup> - Generate a string of `n` randomly
1590+
- `choose(n, alphabet)`<sup>1.27.0</sup> - Generate a string of `n` randomly
15911591
selected characters from `alphabet`, which may not contain repeated
15921592
characters. For example, `choose('64', HEX)` will generate a random
15931593
64-character lowercase hex string.
@@ -1622,9 +1622,9 @@ A number of constants are predefined:
16221622

16231623
| Name | Value |
16241624
|------|-------------|
1625-
| `HEX`<sup>master</sup> | `"0123456789abcdef"` |
1626-
| `HEXLOWER`<sup>master</sup> | `"0123456789abcdef"` |
1627-
| `HEXUPPER`<sup>master</sup> | `"0123456789ABCDEF"` |
1625+
| `HEX`<sup>1.27.0</sup> | `"0123456789abcdef"` |
1626+
| `HEXLOWER`<sup>1.27.0</sup> | `"0123456789abcdef"` |
1627+
| `HEXUPPER`<sup>1.27.0</sup> | `"0123456789ABCDEF"` |
16281628

16291629
```just
16301630
@foo:
@@ -1644,8 +1644,8 @@ Recipes may be annotated with attributes that change their behavior.
16441644
|------|-------------|
16451645
| `[confirm]`<sup>1.17.0</sup> | Require confirmation prior to executing recipe. |
16461646
| `[confirm('PROMPT')]`<sup>1.23.0</sup> | Require confirmation prior to executing recipe with a custom prompt. |
1647-
| `[doc('DOC')]`<sup>master</sup> | Set recipe's [documentation comment](#documentation-comments) to `DOC`. |
1648-
| `[group('NAME"']`<sup>master</sup> | Put recipe in [recipe group](#recipe-groups) `NAME`. |
1647+
| `[doc('DOC')]`<sup>1.27.0</sup> | Set recipe's [documentation comment](#documentation-comments) to `DOC`. |
1648+
| `[group('NAME"']`<sup>1.27.0</sup> | Put recipe in [recipe group](#recipe-groups) `NAME`. |
16491649
| `[linux]`<sup>1.8.0</sup> | Enable recipe on Linux. |
16501650
| `[macos]`<sup>1.8.0</sup> | Enable recipe on MacOS. |
16511651
| `[no-cd]`<sup>1.9.0</sup> | Don't change directory before executing recipe. |

man/just.1

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.ie \n(.g .ds Aq \(aq
22
.el .ds Aq '
3-
.TH just 1 "just 1.26.0"
3+
.TH just 1 "just 1.27.0"
44
.SH NAME
55
just \- 🤖 Just a command runner \- https://github.com/casey/just
66
.SH SYNOPSIS
7-
\fBjust\fR [\fB\-\-check\fR] [\fB\-\-chooser\fR] [\fB\-\-color\fR] [\fB\-\-command\-color\fR] [\fB\-\-yes\fR] [\fB\-n\fR|\fB\-\-dry\-run\fR] [\fB\-\-dump\-format\fR] [\fB\-\-highlight\fR] [\fB\-\-list\-heading\fR] [\fB\-\-list\-prefix\fR] [\fB\-\-no\-aliases\fR] [\fB\-\-no\-deps\fR] [\fB\-\-no\-dotenv\fR] [\fB\-\-no\-highlight\fR] [\fB\-f\fR|\fB\-\-justfile\fR] [\fB\-q\fR|\fB\-\-quiet\fR] [\fB\-\-set\fR] [\fB\-\-shell\fR] [\fB\-\-shell\-arg\fR] [\fB\-\-shell\-command\fR] [\fB\-\-clear\-shell\-args\fR] [\fB\-u\fR|\fB\-\-unsorted\fR] [\fB\-\-unstable\fR] [\fB\-v\fR|\fB\-\-verbose\fR]... [\fB\-d\fR|\fB\-\-working\-directory\fR] [\fB\-\-changelog\fR] [\fB\-\-choose\fR] [\fB\-c\fR|\fB\-\-command\fR] [\fB\-\-completions\fR] [\fB\-\-dump\fR] [\fB\-e\fR|\fB\-\-edit\fR] [\fB\-\-evaluate\fR] [\fB\-\-fmt\fR] [\fB\-\-init\fR] [\fB\-l\fR|\fB\-\-list\fR] [\fB\-\-man\fR] [\fB\-s\fR|\fB\-\-show\fR] [\fB\-\-summary\fR] [\fB\-\-variables\fR] [\fB\-\-dotenv\-filename\fR] [\fB\-E\fR|\fB\-\-dotenv\-path\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIARGUMENTS\fR]
7+
\fBjust\fR [\fB\-\-check\fR] [\fB\-\-chooser\fR] [\fB\-\-color\fR] [\fB\-\-command\-color\fR] [\fB\-\-yes\fR] [\fB\-n\fR|\fB\-\-dry\-run\fR] [\fB\-\-dump\-format\fR] [\fB\-\-highlight\fR] [\fB\-\-list\-heading\fR] [\fB\-\-list\-prefix\fR] [\fB\-\-no\-aliases\fR] [\fB\-\-no\-deps\fR] [\fB\-\-no\-dotenv\fR] [\fB\-\-no\-highlight\fR] [\fB\-f\fR|\fB\-\-justfile\fR] [\fB\-q\fR|\fB\-\-quiet\fR] [\fB\-\-set\fR] [\fB\-\-shell\fR] [\fB\-\-shell\-arg\fR] [\fB\-\-shell\-command\fR] [\fB\-\-clear\-shell\-args\fR] [\fB\-u\fR|\fB\-\-unsorted\fR] [\fB\-\-unstable\fR] [\fB\-v\fR|\fB\-\-verbose\fR]... [\fB\-d\fR|\fB\-\-working\-directory\fR] [\fB\-\-changelog\fR] [\fB\-\-choose\fR] [\fB\-c\fR|\fB\-\-command\fR] [\fB\-\-completions\fR] [\fB\-\-dump\fR] [\fB\-e\fR|\fB\-\-edit\fR] [\fB\-\-evaluate\fR] [\fB\-\-fmt\fR] [\fB\-\-init\fR] [\fB\-l\fR|\fB\-\-list\fR] [\fB\-\-groups\fR] [\fB\-\-man\fR] [\fB\-s\fR|\fB\-\-show\fR] [\fB\-\-summary\fR] [\fB\-\-variables\fR] [\fB\-\-dotenv\-filename\fR] [\fB\-E\fR|\fB\-\-dotenv\-path\fR] [\fB\-g\fR|\fB\-\-global\-justfile\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIARGUMENTS\fR]
88
.SH DESCRIPTION
99
🤖 Just a command runner \- https://github.com/casey/just
1010
.SH OPTIONS
@@ -24,19 +24,28 @@ Print colorful output
2424

2525
.br
2626
[\fIpossible values: \fRauto, always, never]
27+
.RS
28+
May also be specified with the \fBJUST_COLOR\fR environment variable.
29+
.RE
2730
.TP
2831
\fB\-\-command\-color\fR
2932
Echo recipe lines in <COMMAND\-COLOR>
3033
.br
3134

3235
.br
3336
[\fIpossible values: \fRblack, blue, cyan, green, purple, red, yellow]
37+
.RS
38+
May also be specified with the \fBJUST_COMMAND_COLOR\fR environment variable.
39+
.RE
3440
.TP
3541
\fB\-\-yes\fR
3642
Automatically confirm all recipes.
3743
.TP
3844
\fB\-n\fR, \fB\-\-dry\-run\fR
3945
Print what just would do without doing it
46+
.RS
47+
May also be specified with the \fBJUST_DRY_RUN\fR environment variable.
48+
.RE
4049
.TP
4150
\fB\-\-dump\-format\fR=\fIFORMAT\fR [default: just]
4251
Dump justfile as <FORMAT>
@@ -68,9 +77,15 @@ Don\*(Aqt highlight echoed recipe lines in bold
6877
.TP
6978
\fB\-f\fR, \fB\-\-justfile\fR
7079
Use <JUSTFILE> as justfile
80+
.RS
81+
May also be specified with the \fBJUST_JUSTFILE\fR environment variable.
82+
.RE
7183
.TP
7284
\fB\-q\fR, \fB\-\-quiet\fR
7385
Suppress all output
86+
.RS
87+
May also be specified with the \fBJUST_QUIET\fR environment variable.
88+
.RE
7489
.TP
7590
\fB\-\-set\fR=\fIVARIABLE VALUE\fR
7691
Override <VARIABLE> with <VALUE>
@@ -98,9 +113,15 @@ May also be specified with the \fBJUST_UNSTABLE\fR environment variable.
98113
.TP
99114
\fB\-v\fR, \fB\-\-verbose\fR
100115
Use verbose output
116+
.RS
117+
May also be specified with the \fBJUST_VERBOSE\fR environment variable.
118+
.RE
101119
.TP
102120
\fB\-d\fR, \fB\-\-working\-directory\fR
103121
Use <WORKING\-DIRECTORY> as working directory. \-\-justfile must also be set
122+
.RS
123+
May also be specified with the \fBJUST_WORKING_DIRECTORY\fR environment variable.
124+
.RE
104125
.TP
105126
\fB\-\-changelog\fR
106127
Print changelog
@@ -136,6 +157,9 @@ Initialize new justfile in project root
136157
\fB\-l\fR, \fB\-\-list\fR
137158
List available recipes and their arguments
138159
.TP
160+
\fB\-\-groups\fR
161+
List recipe groups
162+
.TP
139163
\fB\-\-man\fR
140164
Print man page
141165
.TP
@@ -154,6 +178,9 @@ Search for environment file named <DOTENV\-FILENAME> instead of `.env`
154178
\fB\-E\fR, \fB\-\-dotenv\-path\fR
155179
Load <DOTENV\-PATH> as environment file instead of searching for one
156180
.TP
181+
\fB\-g\fR, \fB\-\-global\-justfile\fR
182+
Use global justfile
183+
.TP
157184
\fB\-h\fR, \fB\-\-help\fR
158185
Print help
159186
.TP
@@ -163,6 +190,6 @@ Print version
163190
[\fIARGUMENTS\fR]
164191
Overrides and recipe(s) to run, defaulting to the first recipe in the justfile
165192
.SH VERSION
166-
v1.26.0
193+
v1.27.0
167194
.SH AUTHORS
168195
Casey Rodarmor <casey@rodarmor.com>

0 commit comments

Comments
 (0)