mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-09-09 19:27:48 +02:00
feat: add SSH test infrastructure, improve executor temp handling, enhance CLI workflow install
Amp-Thread-ID: https://ampcode.com/threads/T-019c195d-0f3b-724a-946a-a3a93dd7d09b Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -303,6 +303,14 @@ func executeFunctionForTarget(printer *terminal.Printer, script, target string)
|
||||
|
||||
cfg := config.Get()
|
||||
ctx := executor.BuildBuiltinVariables(cfg, params)
|
||||
|
||||
// Defer temp directory cleanup
|
||||
if tempDir, ok := ctx["TempDir"].(string); ok && tempDir != "" {
|
||||
defer func() {
|
||||
_ = os.RemoveAll(tempDir)
|
||||
}()
|
||||
}
|
||||
|
||||
if target != "" {
|
||||
ctx["target"] = target
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user