2022-10-15 00:48:38 +08:00
|
|
|
set -l commands allow permit grant block deny revoke edit exec fetchurl help hook prune reload status stdlib version
|
|
|
|
|
|
|
|
set -l with_file allow permit grant block deny revoke edit
|
|
|
|
|
|
|
|
complete -c direnv -f
|
|
|
|
|
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a "allow permit grant" -d "Grant direnv permission to load the given .envrc or .env file"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a "block deny revoke" -d "Revoke the authorization of a given .envrc or .env file"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a edit -d "Open given file or current .envrc/.env in \$EDITOR and allow it to be loaded afterwards"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a exec -d "Execute a command after loading the first .envrc or .env found in DIR"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a fetchurl -d "Fetch a given URL into direnv's CAS"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
|
|
|
-a help -d "show help"
|
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
|
|
|
-a hook -d "Used to setup the shell hook"
|
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a prune -d "Remove old allowed files"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a reload -d "Trigger an env reload"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a status -d "Print some debug status information"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a stdlib -d "Display the stdlib available in the .envrc execution context"
|
2022-10-15 00:48:38 +08:00
|
|
|
complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
|
2024-05-16 23:04:07 +08:00
|
|
|
-a version -d "Print the version or check that direnv is at least given version"
|
2022-10-15 00:48:38 +08:00
|
|
|
|
|
|
|
complete -c direnv -n "__fish_seen_subcommand_from $with_file" -F
|