cli Module (stx.cli)

SciTeX CLI - Command-line interface for SciTeX platform

Provides unified interface for: - Cloud operations (wraps tea for Gitea) - Scholar operations (Django API) - Code operations (Django API) - Viz operations (Django API) - Writer operations (Django API) - Project operations (integrated workflows)

scitex.cli.print_help_recursive(ctx, group)[source]

Print help for a group and all its subcommands.

Parameters:
  • ctx – The click context

  • group (Group) – The click group to print help for

Return type:

None

scitex.cli.format_python_signature(func, multiline=True, indent='  ')[source]

Format Python function signature with colors matching mcp list-tools.

Returns (name_colored, signature_colored)

Return type:

tuple

scitex.cli.group_to_json(ctx, group)[source]

Output a group’s subcommands as Result JSON and exit.

Provides --json behavior for group-level commands, listing available subcommands with their short help text.

Return type:

None

scitex.cli.help_recursive_to_json(ctx, group)[source]

Output recursive help for a group and all subcommands as Result JSON.

Walks the entire command tree and outputs structured JSON with command names, help text, options, and nested subcommands.

Return type:

None