From 37cacd59265cda11d1a038e48f1f4520f62eb09d Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Fri, 24 Apr 2026 09:40:58 -0400 Subject: [PATCH 1/2] build(source-os): add sourceos-office command wrapper --- build/office-suite/scripts/sourceos-office | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 build/office-suite/scripts/sourceos-office diff --git a/build/office-suite/scripts/sourceos-office b/build/office-suite/scripts/sourceos-office new file mode 100644 index 0000000..ea5251f --- /dev/null +++ b/build/office-suite/scripts/sourceos-office @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)" +CMD="${1:-help}" +shift || true + +case "$CMD" in + install) + "$ROOT/build/office-suite/scripts/install_sourceos_office_shell.sh" + ;; + verify) + "$ROOT/build/office-suite/scripts/office_shell_verify.sh" + ;; + open) + "$ROOT/build/office-suite/scripts/office_open.sh" "$@" + ;; + search) + "$ROOT/build/office-suite/scripts/office_search_open.sh" "$@" + ;; + help|*) + cat <<'EOF' +usage: sourceos-office [args] +EOF + ;; +esac From 721a49745504481039aee4afe7e5ccb1c00105bc Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Fri, 24 Apr 2026 09:42:18 -0400 Subject: [PATCH 2/2] build(source-os): add sourceos-office command smoke helper --- build/office-suite/scripts/sourceos_office_smoke.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 build/office-suite/scripts/sourceos_office_smoke.sh diff --git a/build/office-suite/scripts/sourceos_office_smoke.sh b/build/office-suite/scripts/sourceos_office_smoke.sh new file mode 100644 index 0000000..b5ad4e8 --- /dev/null +++ b/build/office-suite/scripts/sourceos_office_smoke.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)" +OUT="$($ROOT/build/office-suite/scripts/sourceos-office help)" + +[[ "$OUT" == *"usage: sourceos-office"* ]] || { + echo "sourceos-office smoke failed" >&2 + exit 1 +} + +echo "sourceos-office smoke passed"