CLI

Warning

Be careful with these! Internal APIs are not covered by version policies. They can break or be removed between minor versions!

If you need an internal API stabilized please file an issue.

tmuxp.cli

CLI utilities for tmuxp.

tmuxp.cli.create_parser()function[source]

Create CLI argparse.ArgumentParser for tmuxp.

Return type:

ArgumentParser

class tmuxp.cli.CLINamespaceclass[source]

Bases: Namespace

Typed argparse.Namespace for tmuxp root-level CLI.

log_level: CLIVerbosityattribute
color: CLIColorModeattribute
subparser_name: CLISubparserNameattribute
import_subparser_name: CLIImportSubparserName | Noneattribute
version: boolattribute
tmuxp.cli.cli(_args=None)function[source]

Manage tmux sessions.

Pass the “–help” argument to any command to see detailed help. See detailed documentation and examples at: http://tmuxp.git-pull.com/

Return type:

None

Parameters:

_args (list[str] | None)

tmuxp.cli.startup(config_dir)function[source]

Initialize CLI.

Return type:

None

Parameters:
  • str (get_workspace_dir(): Config directory to search)

  • config_dir (pathlib.Path)