mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
23 lines
667 B
Bash
Executable File
23 lines
667 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Set the Omarchy channel, which dictates what git branch and package repository is used.
|
|
# omarchy:args=<stable|rc|edge|dev>
|
|
# omarchy:requires-sudo=true
|
|
|
|
if (($# == 0)); then
|
|
echo "Usage: omarchy-channel-set [stable|rc|edge|dev]"
|
|
exit 1
|
|
else
|
|
channel="$1"
|
|
fi
|
|
|
|
case "$channel" in
|
|
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" ;;
|
|
"rc") omarchy-branch-set "rc" && omarchy-refresh-pacman "rc" ;;
|
|
"edge") omarchy-branch-set "master" && omarchy-refresh-pacman "edge" ;;
|
|
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
|
|
*) echo "Unknown channel: $channel"; exit 1; ;;
|
|
esac
|
|
|
|
omarchy-update -y
|