Commit 0541f93
authored
fix(onboard): add Windows PowerShell alternatives for shell commands (Fission-AI#638)
* fix(onboard): replace broken preflight check and add Windows compatibility
The onboarding preflight used `openspec status --json` to detect if a
project was initialized, but that command requires an existing change
to succeed. After a fresh `openspec init` (no changes yet), it always
failed — causing the onboarding to incorrectly tell users to run init
again.
Replace with `openspec --version` to verify the CLI is installed.
Also add Windows PowerShell alternatives for all platform-specific
shell commands in the onboarding skill:
- `2>&1 ||` → `; if ($LASTEXITCODE -ne 0) {}`
- `2>/dev/null` → `2>$null`
- `mkdir -p` → `New-Item -ItemType Directory -Force`
* fix(onboard): address PR review feedback for PowerShell commands
Use Get-Command for robust CLI detection instead of $LASTEXITCODE
(which stays stale when a command isn't found), and use forward slashes
in PowerShell paths for consistency with Unix commands.1 parent be51bcb commit 0541f93
2 files changed
Lines changed: 11 additions & 14 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
| 940 | + | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
943 | 944 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
| 945 | + | |
| 946 | + | |
948 | 947 | | |
949 | 948 | | |
950 | 949 | | |
951 | 950 | | |
952 | 951 | | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
| 952 | + | |
957 | 953 | | |
958 | 954 | | |
959 | 955 | | |
| |||
996 | 992 | | |
997 | 993 | | |
998 | 994 | | |
| 995 | + | |
999 | 996 | | |
| 997 | + | |
| 998 | + | |
1000 | 999 | | |
1001 | 1000 | | |
1002 | 1001 | | |
| |||
1191 | 1190 | | |
1192 | 1191 | | |
1193 | 1192 | | |
| 1193 | + | |
1194 | 1194 | | |
| 1195 | + | |
| 1196 | + | |
1195 | 1197 | | |
1196 | 1198 | | |
1197 | 1199 | | |
| |||
0 commit comments