commit 15680ddf5c2915fee8c95a24c83819dfaea57c1a Author: fukunee Date: Tue May 12 16:05:50 2026 +0800 Add initial Claw cloud host manager implementation diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26d7437 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# 密钥文件 - 绝对不能提交 +keys/*.pem +keys/*.key +keys/*.ppk + +# 临时文件 +*.swp +*.swo +*~ +.DS_Store diff --git a/claw.bat b/claw.bat new file mode 100644 index 0000000..87f6e5d --- /dev/null +++ b/claw.bat @@ -0,0 +1,2 @@ +@echo off +powershell -ExecutionPolicy Bypass -File "%~dp0claw.ps1" %* diff --git a/claw.ps1 b/claw.ps1 new file mode 100644 index 0000000..596d469 --- /dev/null +++ b/claw.ps1 @@ -0,0 +1,203 @@ +# Claw - Cloud Host Manager (PowerShell) +param($Command, $Arg1, $Arg2, $Arg3) + +$ErrorActionPreference = "Stop" +$ClawRoot = $PSScriptRoot + +function Usage { + @" +Claw - Cloud Host Manager + +Usage: .\claw.ps1 [args...] + claw [args...] + +Commands: + list List all hosts + ssh SSH into a host + run