Skip to content

Commit d572533

Browse files
committed
Fix install.ps1: Rp alias conflict
1 parent 3e097a2 commit d572533

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

install.ps1

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# OpenAnalyst CLI Installer — Windows PowerShell
2-
# Usage: irm https://raw.githubusercontent.com/OpenAnalystInc/cli/main/install.ps1 | iex
2+
# Usage: irm https://raw.githubusercontent.com/OpenAnalystInc/openanalyst-cli/main/install.ps1 | iex
33

44
$ErrorActionPreference = "Continue"
55
$ProgressPreference = "SilentlyContinue"
66
try { [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 } catch {}
77

8-
$Repo = "OpenAnalystInc/cli"
8+
$Repo = "OpenAnalystInc/openanalyst-cli"
99
$BinaryName = "openanalyst.exe"
1010
$InstallDir = "$env:USERPROFILE\.openanalyst\bin"
1111
$ConfigDir = "$env:USERPROFILE\.openanalyst"
1212

1313
# ── Helpers ──
14-
function Rp([string]$c, [int]$n) { if ($n -le 0) { return "" }; return ($c * $n) }
14+
function Repeat([string]$c, [int]$n) { if ($n -le 0) { return "" }; return ($c * $n) }
1515
function Pad([int]$n) { if ($n -le 0) { return "" }; return (" " * $n) }
1616
function W([string]$t) { Write-Host $t -NoNewline -ForegroundColor White }
1717
function Dim([string]$t) { Write-Host $t -NoNewline -ForegroundColor DarkGray }
@@ -55,18 +55,18 @@ Dim " v$Version"
5555
Nl
5656
Dim " The Universal AI Agent for Your Terminal"
5757
Nl; Nl
58-
Dim " $(Rp $H 44)"; Nl; Nl
58+
Dim " $(Repeat $H 44)"; Nl; Nl
5959

6060
# ── System info ──
6161
$OsLabel = "Windows"
6262
$ArchLabel = if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" }
6363
$BoxW = 42
6464

65-
Dim " $TL$(Rp $H $BoxW)$TR"; Nl
65+
Dim " $TL$(Repeat $H $BoxW)$TR"; Nl
6666
Dim " $VL"; W " System "; Dim "$OsLabel $ArchLabel"; Dim (Pad ($BoxW - 15 - "$OsLabel $ArchLabel".Length)); Dim $VL; Nl
6767
Dim " $VL"; W " Install to "; Dim "~\.openanalyst\bin"; Dim (Pad ($BoxW - 15 - 18)); Dim $VL; Nl
6868
Dim " $VL"; W " Config at "; Dim "~\.openanalyst"; Dim (Pad ($BoxW - 15 - 14)); Dim $VL; Nl
69-
Dim " $BL$(Rp $H $BoxW)$BR"; Nl
69+
Dim " $BL$(Repeat $H $BoxW)$BR"; Nl
7070
Nl
7171

7272
# ── Setup ──
@@ -133,21 +133,21 @@ if (-not (Test-Path $EnvFile)) {
133133

134134
# ── Summary ──
135135
Nl; Nl
136-
Dim " $(Rp $H 44)"; Nl; Nl
136+
Dim " $(Repeat $H 44)"; Nl; Nl
137137
Write-Host " $([char]0x2713) Installation complete" -ForegroundColor Green
138138
Nl; Nl
139139

140140
$BinPath = "~\.openanalyst\bin\openanalyst"
141141
$CfgPath = "~\.openanalyst\.env"
142142
$VerStr = "v$Version"
143143

144-
Dim " $TL$(Rp $H $BoxW)$TR"; Nl
144+
Dim " $TL$(Repeat $H $BoxW)$TR"; Nl
145145
Dim " $VL$(Pad $BoxW)$VL"; Nl
146146
Dim " $VL"; W " Binary "; Dim $BinPath; Dim (Pad ($BoxW - 13 - $BinPath.Length)); Dim $VL; Nl
147147
Dim " $VL"; W " Config "; Dim $CfgPath; Dim (Pad ($BoxW - 13 - $CfgPath.Length)); Dim $VL; Nl
148148
Dim " $VL"; W " Version "; Dim $VerStr; Dim (Pad ($BoxW - 13 - $VerStr.Length)); Dim $VL; Nl
149149
Dim " $VL$(Pad $BoxW)$VL"; Nl
150-
Dim " $BL$(Rp $H $BoxW)$BR"; Nl
150+
Dim " $BL$(Repeat $H $BoxW)$BR"; Nl
151151
Nl
152152

153153
# ── Next steps ──
@@ -167,7 +167,7 @@ Acc " `$ openanalyst"; Nl
167167
Nl; Nl
168168

169169
# ── Provider list ──
170-
Dim " $TL$(Rp $H $BoxW)$TR"; Nl
170+
Dim " $TL$(Repeat $H $BoxW)$TR"; Nl
171171
Dim " $VL$(Pad $BoxW)$VL"; Nl
172172
Dim " $VL"; W " 7 LLM Providers. One Interface."; Dim (Pad ($BoxW - 34)); Dim $VL; Nl
173173
Dim " $VL$(Pad $BoxW)$VL"; Nl
@@ -197,12 +197,12 @@ foreach ($p in $providers) {
197197
Dim $VL; Nl
198198
}
199199
Dim " $VL$(Pad $BoxW)$VL"; Nl
200-
Dim " $BL$(Rp $H $BoxW)$BR"; Nl
200+
Dim " $BL$(Repeat $H $BoxW)$BR"; Nl
201201
Nl
202202

203203
Dim " Documentation: "
204-
Acc "github.com/OpenAnalystInc/cli"
204+
Acc "github.com/OpenAnalystInc/openanalyst-cli"
205205
Nl
206206
Dim " Support: "
207-
Acc "anit@openanalyst.com"
207+
Acc "support@openanalyst.com"
208208
Nl; Nl

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set -e
55
# OpenAnalyst CLI Installer — macOS / Linux
66
#
77
# Usage:
8-
# curl -fsSL https://raw.githubusercontent.com/OpenAnalystInc/cli/main/install.sh | bash
8+
# curl -fsSL https://raw.githubusercontent.com/OpenAnalystInc/openanalyst-cli/main/install.sh | bash
99
#
1010
# Or with a specific version:
1111
# curl -fsSL ... | bash -s -- --version 1.0.89
1212
# ─────────────────────────────────────────────────
1313

14-
REPO="OpenAnalystInc/cli"
14+
REPO="OpenAnalystInc/openanalyst-cli"
1515
BINARY_NAME="openanalyst"
1616
INSTALL_DIR="${OPENANALYST_INSTALL_DIR:-$HOME/.local/bin}"
1717
CONFIG_DIR="$HOME/.openanalyst"
@@ -175,7 +175,7 @@ if [ ! -f "$CONFIG_DIR/.env" ]; then
175175
# Uncomment and fill in the providers you want to use.
176176
# Or run `openanalyst login` for interactive browser-based setup.
177177
#
178-
# Docs: https://github.com/OpenAnalystInc/cli
178+
# Docs: https://github.com/OpenAnalystInc/openanalyst-cli
179179
# ═══════════════════════════════════════════════════════════════════
180180
181181
# ── Provider API Keys ─────────────────────────────────────────────
@@ -276,7 +276,7 @@ echo ""
276276
if [ -n "$SHELL_RC" ]; then
277277
echo -e " ${DIM}Reload your shell: source ${SHELL_RC}${R}"
278278
fi
279-
echo -e " ${DIM}Documentation: github.com/OpenAnalystInc/cli${R}"
279+
echo -e " ${DIM}Documentation: github.com/OpenAnalystInc/openanalyst-cli${R}"
280280
echo -e " ${DIM}Support: anit@openanalyst.com${R}"
281281
echo ""
282282
echo ""

0 commit comments

Comments
 (0)