diff --git a/share/completions/yarn.fish b/share/completions/yarn.fish index e412934a5..61c4a356c 100644 --- a/share/completions/yarn.fish +++ b/share/completions/yarn.fish @@ -1,3 +1,5 @@ +# Yarn 1.22.4 + source $__fish_data_dir/functions/__fish_npm_helper.fish set -l yarn_add "yarn global add" @@ -8,57 +10,70 @@ set -l yarn_add "yarn global add" complete -f -c yarn -n '__fish_seen_subcommand_from remove; and not __fish_is_switch' -xa '(__yarn_installed_packages)' complete -f -c yarn -n '__fish_seen_subcommand_from add; and not __fish_is_switch' -xa "(__yarn_filtered_list_packages \"$yarn_add\")" -complete -f -c yarn -n __fish_use_subcommand -a help +complete -f -c yarn -n __fish_use_subcommand -a help -d 'Show available commands and flags' -complete -f -c yarn -n __fish_use_subcommand -a access +complete -f -c yarn -n __fish_use_subcommand -a access -d 'Not implemented' complete -f -c yarn -n '__fish_seen_subcommand_from access' -a 'public restricted grant revoke ls-packages ls-collaborators edit' -complete -f -c yarn -n __fish_use_subcommand -a add +complete -f -c yarn -n __fish_use_subcommand -a add -d 'Add packages' complete -f -c yarn -n '__fish_seen_subcommand_from add' -l dev -s D complete -f -c yarn -n '__fish_seen_subcommand_from add' -l peer -s P complete -f -c yarn -n '__fish_seen_subcommand_from add' -l O -s O complete -f -c yarn -n '__fish_seen_subcommand_from add' -l exact -s E complete -f -c yarn -n '__fish_seen_subcommand_from add' -l tilde -s T -complete -f -c yarn -n __fish_use_subcommand -a bin +complete -f -c yarn -n __fish_use_subcommand -a audit -d 'Perform vulnerability audit' -complete -f -c yarn -n __fish_use_subcommand -a cache +complete -f -c yarn -n __fish_use_subcommand -a autoclean -d 'Clean unnecessary files from dependencies' + +complete -f -c yarn -n __fish_use_subcommand -a bin -d 'Show location of Yarn `bin` folder' + +complete -f -c yarn -n __fish_use_subcommand -a cache -d 'Manage Yarn cache' complete -f -c yarn -n '__fish_seen_subcommand_from cache' -a 'ls dir clean' -complete -f -c yarn -n __fish_use_subcommand -a check -complete -f -c yarn -n __fish_use_subcommand -a clean +complete -f -c yarn -n __fish_use_subcommand -a check -d 'Check dependencies integrity' -complete -f -c yarn -n __fish_use_subcommand -a config +complete -f -c yarn -n __fish_use_subcommand -a config -d 'Manage Yarn configuration' complete -f -c yarn -n '__fish_seen_subcommand_from config' -a 'set get delete list' -complete -f -c yarn -n __fish_use_subcommand -a generate-lock-entry +complete -f -c yarn -n __fish_use_subcommand -a create -d 'Create new project' -complete -f -c yarn -n __fish_use_subcommand -a global -complete -f -c yarn -n '__fish_seen_subcommand_from global' -a 'add bin ls remove upgrade' -complete -f -c yarn -n __fish_use_subcommand -a info +complete -f -c yarn -n __fish_use_subcommand -a exec -d 'Run binaries' -complete -f -c yarn -n __fish_use_subcommand -a init +complete -f -c yarn -n __fish_use_subcommand -a generate-lock-entry -d 'Generate lockfile entry' + +complete -f -c yarn -n __fish_use_subcommand -a global -d 'Manage global packages' +complete -f -c yarn -n '__fish_seen_subcommand_from global' -a 'add bin dir ls list remove upgrade upgrade-interactive' + +complete -f -c yarn -n __fish_use_subcommand -a import -d 'Generate lockfile from existing installation' + +complete -f -c yarn -n __fish_use_subcommand -a info -d 'Show information about a package' + +complete -f -c yarn -n __fish_use_subcommand -a init -d 'Interactively create or update `package.json`' complete -f -c yarn -n '__fish_seen_subcommand_from init' -s y -l yes -complete -f -c yarn -n __fish_use_subcommand -a install +complete -f -c yarn -n __fish_use_subcommand -a install -d 'Install packages' -complete -f -c yarn -n __fish_use_subcommand -a licenses +complete -f -c yarn -n __fish_use_subcommand -a licenses -d 'List licenses for installed packages' complete -f -c yarn -n '__fish_seen_subcommand_from licenses' -a 'ls generate-disclaimer' -complete -f -c yarn -n __fish_use_subcommand -a link +complete -f -c yarn -n __fish_use_subcommand -a link -d 'Symlink a package' -complete -f -c yarn -n __fish_use_subcommand -a list +complete -f -c yarn -n __fish_use_subcommand -a list -d 'List installed packages' complete -f -c yarn -n '__fish_seen_subcommand_from list' -l depth -complete -f -c yarn -n __fish_use_subcommand -a login -complete -f -c yarn -n __fish_use_subcommand -a logout -complete -f -c yarn -n __fish_use_subcommand -a outdated +complete -f -c yarn -n __fish_use_subcommand -a login -d 'Store registry username and email' +complete -f -c yarn -n __fish_use_subcommand -a logout -d 'Clear registry username and email' +complete -f -c yarn -n __fish_use_subcommand -a node -d 'Run Node with the hook already setup' +complete -f -c yarn -n __fish_use_subcommand -a outdated -d 'Check for outdated packages' -complete -f -c yarn -n __fish_use_subcommand -a owner +complete -f -c yarn -n __fish_use_subcommand -a owner -d 'Manage package owners' complete -f -c yarn -n '__fish_seen_subcommand_from owner' -a 'add rm ls' -complete -f -c yarn -n __fish_use_subcommand -a pack +complete -f -c yarn -n __fish_use_subcommand -a pack -d 'Create compressed archive of packages' -complete -f -c yarn -n __fish_use_subcommand -a publish +complete -f -c yarn -n __fish_use_subcommand -a policies -d 'Defines project-wide policies' + +complete -f -c yarn -n __fish_use_subcommand -a publish -d 'Publish package to npm registry' complete -f -c yarn -n '__fish_seen_subcommand_from publish' -l access -a 'public restricted' complete -f -c yarn -n '__fish_seen_subcommand_from publish' -l tag complete -f -c yarn -n '__fish_seen_subcommand_from publish' -l new-version @@ -67,8 +82,8 @@ complete -f -c yarn -n '__fish_seen_subcommand_from publish' -l no-git-tag-versi complete -f -c yarn -n '__fish_seen_subcommand_from publish' -l access complete -f -c yarn -n '__fish_seen_subcommand_from publish' -l tag -complete -f -c yarn -n __fish_use_subcommand -a remove -complete -f -c yarn -n __fish_use_subcommand -a run +complete -f -c yarn -n __fish_use_subcommand -a remove -d 'Remove packages' +complete -f -c yarn -n __fish_use_subcommand -a run -d 'Run a defined package script' function __fish_yarn_run if test -e package.json; and set -l python (__fish_anypython) @@ -86,26 +101,29 @@ end # Scripts can be used like normal subcommands, or with `yarn run SCRIPT`. complete -c yarn -n '__fish_use_subcommand; or __fish_seen_subcommand_from run' -xa "(__fish_yarn_run)" -complete -f -c yarn -n __fish_use_subcommand -a tag +complete -f -c yarn -n __fish_use_subcommand -a tag -d 'Manage package tags' complete -f -c yarn -n '__fish_seen_subcommand_from tag' -a 'add rm ls' -complete -f -c yarn -n __fish_use_subcommand -a team +complete -f -c yarn -n __fish_use_subcommand -a team -d 'Maintain team memberships' complete -f -c yarn -n '__fish_seen_subcommand_from team' -a 'create destroy add rm ls' -complete -f -c yarn -n __fish_use_subcommand -a unlink -complete -f -c yarn -n __fish_use_subcommand -a upgrade -complete -f -c yarn -n __fish_use_subcommand -a upgrade-interactive +complete -f -c yarn -n __fish_use_subcommand -a unlink -d 'Unlink a previously created symlink' +complete -f -c yarn -n __fish_use_subcommand -a unplug -d 'Force unpack packages' +complete -f -c yarn -n __fish_use_subcommand -a upgrade -d 'Upgrade packages' +complete -f -c yarn -n __fish_use_subcommand -a upgrade-interactive -d 'Upgrade packages interactively' -complete -f -c yarn -n __fish_use_subcommand -a version +complete -f -c yarn -n __fish_use_subcommand -a version -d 'Update the package version' complete -f -c yarn -n '__fish_seen_subcommand_from version' -l new-version complete -f -c yarn -n '__fish_seen_subcommand_from version' -l message complete -f -c yarn -n '__fish_seen_subcommand_from version' -l no-git-tag-version -complete -f -c yarn -n __fish_use_subcommand -a versions -complete -f -c yarn -n __fish_use_subcommand -a why +complete -f -c yarn -n __fish_use_subcommand -a versions -d 'Show Yarn and Node version' +complete -f -c yarn -n __fish_use_subcommand -a why -d 'Show why a package is installed' +complete -f -c yarn -n __fish_use_subcommand -a workspace -d 'Manage workspace packages' +complete -f -c yarn -n __fish_use_subcommand -a workspaces -d 'Show workspaces information' # These are the yarn commands all of them use the same options -set -g yarn_cmds access add bin cache check clean config generate-lock-entry global info init install licenses link list login logout outdated owner pack publish remove run tag team unlink upgrade upgrade-interactive version versions why +set -g yarn_cmds access add audit autoclean bin cache check config create exec generate-lock-entry global import info init install licenses link list login logout node outdated owner pack policies publish remove run tag team unlink unplug upgrade upgrade-interactive version versions why workspace workspaces # Common short, long options complete -c yarn -n '__fish_seen_subcommand_from $yarn_cmds' -l help -s h -d 'output usage information'