1
1
mirror of https://github.com/casey/just.git synced 2024-11-23 11:04:09 +03:00
just/bin/generate-completions
Casey Rodarmor 1dbc765390
Add --variables subcommand that prints variable names (#608)
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
2020-03-13 22:19:43 -07:00

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