MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / command_to_text

Function command_to_text

Scripts/Developer Base/Dead Man's Switch.py:97–103  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

95 return repr(value)
96
97def command_to_text(cmd) -> str:
98 try:
99 if isinstance(cmd, (list, tuple)):
100 return " ".join(safe_text(x) for x in cmd)
101 return safe_text(cmd)
102 except Exception:
103 return repr(cmd)
104
105def ensure_logs_dir() -> Path:
106 try:

Callers 5

run_rcFunction · 0.70
runFunction · 0.70
rename_repositoryFunction · 0.70
delete_legacy_repo_namedFunction · 0.70

Calls 1

safe_textFunction · 0.70

Tested by

no test coverage detected