dotcli: install subcommand as wrapper for pacman

The install subcommand also manages a list of packages intalled
through `dot install`. This list can be restored using `dot install
--restore`.
This commit is contained in:
2026-07-04 09:38:22 -04:00
parent 80581f5029
commit d41e1c46f4
5 changed files with 193 additions and 0 deletions

View File

@@ -5,3 +5,8 @@ function __dot_custom_subcommands
end
complete -c dot -n __fish_use_subcommand -a "(__dot_custom_subcommands)"
# --- dot install ---
complete -c dot -n "__fish_seen_subcommand_from install; and not __fish_seen_argument -l restore" -l restore -d "reinstall every package from the saved list"
complete -c dot -n "__fish_seen_subcommand_from install; and not __fish_seen_argument -l no-sync" -l no-sync -d "skip the pacman -Sy database refresh"
complete -c dot -n "__fish_seen_subcommand_from install; and not __fish_seen_argument -l restore" -f -a "(__fish_print_pacman_packages)"