Skip to content

Commit 6d5d8b9

Browse files
committed
refactors
1 parent eb1e9b9 commit 6d5d8b9

11 files changed

Lines changed: 51 additions & 15 deletions

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ Installed command aliases:
110110
- `asrfacet-rb`
111111
- `asrfrb`
112112

113+
Installer prompt theme (all platforms):
114+
115+
- `[ASRFacet-Rb][INFO]`
116+
- `[ASRFacet-Rb][ OK ]`
117+
- `[ASRFacet-Rb][WARN]`
118+
- `[ASRFacet-Rb][FAIL]`
119+
113120
## Command Examples
114121

115122
```bash

docs/getting-started.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ Each installer supports:
3434

3535
They stage the framework into its own `asrfacet-rb` application directory, install dependencies into that directory, create launchers, and print the final install and report paths when complete. After installation you can invoke the framework with either `asrfacet-rb` or the shorter alias `asrfrb`.
3636

37+
Installer prompt legend is consistent across Linux, macOS, and Windows:
38+
39+
- `[ASRFacet-Rb][INFO]` for progress
40+
- `[ASRFacet-Rb][ OK ]` for successful milestones
41+
- `[ASRFacet-Rb][WARN]` for recoverable issues
42+
- `[ASRFacet-Rb][FAIL]` for stopping errors
43+
3744
## First Commands
3845

3946
```bash

docs/website/download.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
Website installers fetch required files from the main repository, then execute the maintained platform installer under <code>install/</code> so behavior stays consistent.
7474
</div>
7575

76+
<div class="callout callout-info">
77+
<div class="callout-title">Prompt Theme</div>
78+
Installer output now uses a shared prompt style across docs and platforms:
79+
<code>[ASRFacet-Rb][INFO]</code>, <code>[ASRFacet-Rb][ OK ]</code>, <code>[ASRFacet-Rb][WARN]</code>, and <code>[ASRFacet-Rb][FAIL]</code>.
80+
</div>
81+
7682
<div class="callout callout-warn">
7783
<div class="callout-title">Authorized Use Only</div>
7884
Use ASRFacet-Rb only on systems you own or have explicit written permission to test.

docs/website/web_assets/installers/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ All installers support:
3535

3636
If no mode is passed, an interactive mode chooser is shown.
3737

38+
## Prompt Theme
39+
40+
Installer prompts follow a shared subtle theme so terminal output feels consistent with docs and website language:
41+
42+
- `[ASRFacet-Rb][INFO]` progress updates
43+
- `[ASRFacet-Rb][ OK ]` completed actions
44+
- `[ASRFacet-Rb][WARN]` recoverable warnings
45+
- `[ASRFacet-Rb][FAIL]` stopping errors
46+
3847
## Optional flags
3948

4049
- `--yes` or `--no-prompt`: skip prompts where possible

docs/website/web_assets/installers/asrfacet-rb-installer-linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -u
55
set -o pipefail
66

77
APP_NAME="asrfacet-rb"
8+
THEME_TAG="ASRFacet-Rb"
89
REPO_URL="https://github.com/voltsparx/ASRFacet-Rb.git"
910
BRANCH="main"
1011
TEMP_BASE="${TMPDIR:-/tmp}/${APP_NAME}-installer"
@@ -14,7 +15,7 @@ KEEP_TEMP="no"
1415
VERBOSE="no"
1516
WORK_DIR=""
1617

17-
log() { printf '[%s] %s\n' "$1" "$2"; }
18+
log() { printf '[%s][%s] %s\n' "$THEME_TAG" "$1" "$2"; }
1819
info() { log "INFO" "$1"; }
1920
ok() { log " OK " "$1"; }
2021
warn() { log "WARN" "$1"; }

docs/website/web_assets/installers/asrfacet-rb-installer-macos.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -u
55
set -o pipefail
66

77
APP_NAME="asrfacet-rb"
8+
THEME_TAG="ASRFacet-Rb"
89
REPO_URL="https://github.com/voltsparx/ASRFacet-Rb.git"
910
BRANCH="main"
1011
TEMP_BASE="${TMPDIR:-/tmp}/${APP_NAME}-installer"
@@ -14,7 +15,7 @@ KEEP_TEMP="no"
1415
VERBOSE="no"
1516
WORK_DIR=""
1617

17-
log() { printf '[%s] %s\n' "$1" "$2"; }
18+
log() { printf '[%s][%s] %s\n' "$THEME_TAG" "$1" "$2"; }
1819
info() { log "INFO" "$1"; }
1920
ok() { log " OK " "$1"; }
2021
warn() { log "WARN" "$1"; }

docs/website/web_assets/installers/asrfacet-rb-installer-windows.cmd

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ setlocal EnableExtensions
44

55
set "SCRIPT_DIR=%~dp0"
66
set "SCRIPT_NAME=%~nx0"
7+
set "THEME=[ASRFacet-Rb]"
78
set "PS_SCRIPT=%SCRIPT_DIR%asrfacet-rb-installer-windows.ps1"
89
set "PS_EXE="
910
set "MODE="
@@ -14,7 +15,7 @@ set "FLAG_VERBOSE="
1415
set "PS_ARGS="
1516

1617
if not exist "%PS_SCRIPT%" (
17-
echo [FAIL] Missing installer script: %PS_SCRIPT%
18+
echo %THEME%[FAIL] Missing installer script: %PS_SCRIPT%
1819
exit /b 1
1920
)
2021

@@ -54,8 +55,8 @@ if /I "%~1"=="--verbose" (
5455
goto :parse_args
5556
)
5657

57-
echo [FAIL] Unknown argument: %~1
58-
echo [INFO] Run "%SCRIPT_NAME% --help" for usage.
58+
echo %THEME%[FAIL] Unknown argument: %~1
59+
echo %THEME%[INFO] Run "%SCRIPT_NAME% --help" for usage.
5960
exit /b 1
6061

6162
:set_mode_install
@@ -83,7 +84,7 @@ shift
8384
goto :parse_args
8485

8586
:multiple_mode
86-
echo [FAIL] Multiple modes provided. Use one of: install, test, update, uninstall.
87+
echo %THEME%[FAIL] Multiple modes provided. Use one of: install, test, update, uninstall.
8788
exit /b 1
8889

8990
:args_done
@@ -100,30 +101,30 @@ if not defined PS_EXE where pwsh >nul 2>nul
100101
if not defined PS_EXE if not errorlevel 1 set "PS_EXE=pwsh"
101102

102103
if not defined PS_EXE (
103-
echo [FAIL] Neither powershell nor pwsh was found in PATH.
104+
echo %THEME%[FAIL] Neither powershell nor pwsh was found in PATH.
104105
exit /b 1
105106
)
106107

107108
if /I "%PS_EXE%"=="powershell" goto :run_powershell
108109
goto :run_pwsh
109110

110111
:run_powershell
111-
echo [INFO] Running installer with PowerShell.
112+
echo %THEME%[INFO] Running installer with PowerShell.
112113
powershell -NoProfile -ExecutionPolicy Bypass -File "%PS_SCRIPT%" %PS_ARGS%
113114
set "EXIT_CODE=%ERRORLEVEL%"
114115
goto :finish
115116

116117
:run_pwsh
117-
echo [INFO] Running installer with PowerShell Core (pwsh).
118+
echo %THEME%[INFO] Running installer with PowerShell Core (pwsh).
118119
pwsh -NoProfile -File "%PS_SCRIPT%" %PS_ARGS%
119120
set "EXIT_CODE=%ERRORLEVEL%"
120121
goto :finish
121122

122123
:finish
123124
if not "%EXIT_CODE%"=="0" (
124-
echo [FAIL] Installer failed with exit code %EXIT_CODE%.
125+
echo %THEME%[FAIL] Installer failed with exit code %EXIT_CODE%.
125126
) else (
126-
echo [ OK ] Installer completed successfully.
127+
echo %THEME%[ OK ] Installer completed successfully.
127128
)
128129
exit /b %EXIT_CODE%
129130

docs/website/web_assets/installers/asrfacet-rb-installer-windows.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ Set-StrictMode -Version Latest
1717
$RepoUrl = "https://github.com/voltsparx/ASRFacet-Rb.git"
1818
$Branch = "main"
1919
$WorkDir = $null
20+
$ThemeTag = "ASRFacet-Rb"
2021

2122
function Write-Labelled {
2223
param(
2324
[string]$Label,
2425
[string]$Message,
2526
[ConsoleColor]$Color = [ConsoleColor]::Gray
2627
)
27-
Write-Host ("[{0}] {1}" -f $Label, $Message) -ForegroundColor $Color
28+
Write-Host ("[{0}][{1}] {2}" -f $ThemeTag, $Label, $Message) -ForegroundColor $Color
2829
}
2930

3031
function Write-Info { param([string]$Message) Write-Labelled -Label "INFO" -Message $Message -Color ([ConsoleColor]::Cyan) }

install/linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set -o pipefail
1717

1818
APP_NAME="asrfacet-rb"
1919
ALIAS_NAME="asrfrb"
20+
THEME_TAG="ASRFacet-Rb"
2021
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2122
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
2223
INSTALL_ROOT="$HOME/.local/share/$APP_NAME"
@@ -46,7 +47,7 @@ RUNTIME_PAYLOAD=(
4647
"asrfacet-rb.gemspec"
4748
)
4849

49-
log() { printf '[%s] %s\n' "$1" "$2"; }
50+
log() { printf '[%s][%s] %s\n' "$THEME_TAG" "$1" "$2"; }
5051
info() { log "INFO" "$1"; }
5152
ok() { log " OK " "$1"; }
5253
warn() { log "WARN" "$1"; }

install/macos.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set -o pipefail
1717

1818
APP_NAME="asrfacet-rb"
1919
ALIAS_NAME="asrfrb"
20+
THEME_TAG="ASRFacet-Rb"
2021
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2122
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
2223
INSTALL_ROOT="$HOME/Library/Application Support/$APP_NAME"
@@ -46,7 +47,7 @@ RUNTIME_PAYLOAD=(
4647
"asrfacet-rb.gemspec"
4748
)
4849

49-
log() { printf '[%s] %s\n' "$1" "$2"; }
50+
log() { printf '[%s][%s] %s\n' "$THEME_TAG" "$1" "$2"; }
5051
info() { log "INFO" "$1"; }
5152
ok() { log " OK " "$1"; }
5253
warn() { log "WARN" "$1"; }

0 commit comments

Comments
 (0)