mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-17 23:04:54 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.3 KiB
Bash
Executable File
30 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# run_phone.sh — Visible entrypoint for the phone focus mode workflow.
|
|
#
|
|
# The implementation lives in the extracted phone-focus-mode repo
|
|
# (~/src/phone-focus-mode); this wrapper only resolves and execs it.
|
|
#
|
|
# Quick reference:
|
|
# ./meta/scripts/run_all/run_phone.sh Everyday: backup + monitor + minor repair.
|
|
# Shows a warning if the phone was wiped.
|
|
# ./meta/scripts/run_all/run_phone.sh fresh-phone Full recovery after a factory reset.
|
|
# ./meta/scripts/run_all/run_phone.sh doctor Diagnose and repair security drift.
|
|
# ./meta/scripts/run_all/run_phone.sh backup Incremental backup only.
|
|
# ./meta/scripts/run_all/run_phone.sh monitor Health snapshot only.
|
|
# ./meta/scripts/run_all/run_phone.sh --help Show full usage.
|
|
set -euo pipefail
|
|
|
|
_REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
|
|
# shellcheck source=../../../linux_configuration/lib/extracted_repos.sh
|
|
source "${_REPO_ROOT}/linux_configuration/lib/extracted_repos.sh"
|
|
|
|
_PFM_DIR="$(require_extracted_repo phone-focus-mode "run_phone.sh")"
|
|
_IMPL="${_PFM_DIR}/run_phone.sh"
|
|
|
|
if [[ ! -f "${_IMPL}" ]]; then
|
|
printf 'ERROR: implementation script not found: %s\n' "${_IMPL}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec bash "${_IMPL}" "$@"
|