Skip to main content

Module cli

Module cli 

Source
Expand description

CliGenerator — generates a Unix shell script and/or Windows .cmd file.

The generated script:

  • Has a #!/usr/bin/env sh shebang on Unix.
  • Contains a TOKEN constant with the session bearer token.
  • Contains a BRIDGE constant with the proxy URL.
  • Has one case branch per upstream tool, each mapped to a kebab-case subcommand.
  • Passes Authorization: Bearer $TOKEN on every POST /exec request.
  • Is marked executable (Unix chmod 755).

Structs§

CliGenerator