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>
16 lines
403 B
Bash
Executable File
16 lines
403 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Launch or focus on a given web app identified by the window-pattern.
|
|
# omarchy:args=<window-pattern> <url-and-flags...>
|
|
|
|
if (($# == 0)); then
|
|
echo "Usage: omarchy-launch-or-focus-webapp [window-pattern] [url-and-flags...]"
|
|
exit 1
|
|
fi
|
|
|
|
WINDOW_PATTERN="$1"
|
|
shift
|
|
LAUNCH_COMMAND="omarchy-launch-webapp $@"
|
|
|
|
exec omarchy-launch-or-focus "$WINDOW_PATTERN" "$LAUNCH_COMMAND"
|