Expand description
Empacotamento seguro de comandos sudo/su (one-shot multi-host para LLMs).
Usa sh -c com escape de aspas para comandos compostos seguros.
Structs§
- Packed
Command - Packing result: remote command without secret in argv + optional bytes to send on the SSH channel stdin (GAP-SSH-SEC-001).
Functions§
- append_
description - Appends
descriptionas a shell comment safely. - escape_
shell_ single_ quotes - Escapes a string for safe use inside shell single quotes.
- pack_
abort_ pkill - Monta command de abort best-effort remoto (TERM depois KILL).
- pack_su
- Packs a command for
su - -cone-shot; password goes on the channel stdin. - pack_
sudo - Packs a command for
sudowithsh -c. - remote_
abort_ pattern - Sanitiza trecho de command para uso best-effort em
pkill -f.