spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Addition of check for presence of required commandsBrowse files
keitosuwahara authored on Jul 17, 2025 parent d45bce2 · commit 9285dfbf2f09
1 changed file+15 -0compared with d45bce2
MScript/run_devcontainer_claude_code.ps1
@@ -37,6 +37,21 @@
3737 Write-Host "--- DevContainer Startup & Connection Script ---"
3838 Write-Host "Using backend: $($Backend)"
3939
40+# --- Prerequisite Check ---
41+Write-Host "Checking for required commands..."
42+try {
43+ Get-Command $Backend -ErrorAction Stop | Out-Null
44+ Write-Host "- $($Backend) command found."
45+ Get-Command devcontainer -ErrorAction Stop | Out-Null
46+ Write-Host "- devcontainer command found."
47+}
48+catch {
49+ Write-Error "A required command is not installed or not in your PATH."
50+ Write-Error "Please ensure '$($_.Exception.Message.Split(':')[0])' and 'devcontainer' are installed and accessible."
51+ exit 1
52+}
53+
54+
4055 # --- Backend-Specific Initialization ---
4156 if ($Backend -eq 'podman') {
4257 Write-Host "--- Podman Backend Initialization ---"