Logo
Explore Help
Sign In
greg/just
1
0
Fork 0
You've already forked just
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
41c52f9ade50c3224f89a38c8f4b36f96aa03a9a
just/bin/generate-completions

9 lines
146 B
Plaintext
Raw Normal View History

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
#!/usr/bin/env bash
set -euxo pipefail
for script in completions/*; do
shell=${script##*.}
cargo run -- --completions $shell > $script
done
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 468ms Template: 65ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API