MCPcopy Create free account
hub / github.com/Tele-AI/Fluxon / _shell_single_quote

Function _shell_single_quote

deployment/gen_docker_deploy_bash.py:461–464  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

459
460
461def _shell_single_quote(s: str) -> str:
462 # Wrap in single quotes, escaping internal single quotes with: '
463 # see: https://stackoverflow.com/a/1250279
464 return "'" + s.replace("'", "'\\''") + "'"
465
466
467# (removed) relaxed YAML fixer: require valid YAML to keep generator simple

Callers 4

_render_service_scriptFunction · 0.85
_add_token_earlyFunction · 0.85
_render_stop_scriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected