mirror of
https://github.com/casey/just.git
synced 2024-11-23 11:04:09 +03:00
1dbc765390
Add a subcommand that prints out a space-separated list of the names of top-level variables in the justfile. The syntax is: $ just --variables a b c This can be used for any purpose, but is mostly intended for completion scripts, so that they can get the names of variables without using `--evaluate`. Additionally: - Add `bin/generate-completions` script to regenerate checked-in completions - Update dependencies - Regenerate checked-in completions
9 lines
146 B
Bash
Executable File
9 lines
146 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
for script in completions/*; do
|
|
shell=${script##*.}
|
|
cargo run -- --completions $shell > $script
|
|
done
|