diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 22:44:26 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 22:44:26 +1100 |
| commit | a23d2a4b8a39fea9ef1500ee6da85dc34cf03257 (patch) | |
| tree | bff424dcc250dad24489cfc761308698d2362229 /main.fish | |
| parent | shell: fix run (diff) | |
| download | caelestia-cli-a23d2a4b8a39fea9ef1500ee6da85dc34cf03257.tar.gz caelestia-cli-a23d2a4b8a39fea9ef1500ee6da85dc34cf03257.tar.bz2 caelestia-cli-a23d2a4b8a39fea9ef1500ee6da85dc34cf03257.zip | |
install: all subcommand
Diffstat (limited to 'main.fish')
| -rwxr-xr-x | main.fish | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -45,7 +45,13 @@ end if test "$argv[1]" = install set -l valid_modules discord foot fuzzel hypr safeeyes scripts shell gtk vscode - contains -- "$argv[2]" $valid_modules && $src/install/$argv[2].fish $argv[3..] || error "Invalid module: $argv[2]" + if test "$argv[2]" = all + for module in $valid_modules + $src/install/$module.fish $argv[3..] + end + else + contains -- "$argv[2]" $valid_modules && $src/install/$argv[2].fish $argv[3..] || error "Invalid module: $argv[2]" + end exit end |