tmuxp import - tmuxp.cli.import_config¶
CLI for tmuxp import subcommand.
- tmuxp.cli.import_config.get_tmuxinator_dir()[source]¶
Return tmuxinator configuration directory.
Checks for
TMUXINATOR_CONFIGenvironmental variable.- Return type:
- Returns:
absolute path to tmuxinator config directory
- Return type:
- tmuxp.cli.import_config.get_teamocil_dir()[source]¶
Return teamocil configuration directory.
- Return type:
- Returns:
absolute path to teamocil config directory
- Return type:
- tmuxp.cli.import_config.command_import(workspace_file, print_list, parser)[source]¶
Import a teamocil/tmuxinator config.
- Return type:
None
- Parameters:
workspace_file (str)
print_list (str)
parser (argparse.ArgumentParser)
- tmuxp.cli.import_config.create_import_subparser(parser)[source]¶
Augment
argparse.ArgumentParserwithimportsubparser.- Return type:
argparse.ArgumentParser
- Parameters:
parser (argparse.ArgumentParser)
- class tmuxp.cli.import_config.ImportConfigFn[source]¶
Bases:
ProtocolTyping for import configuration callback function.
- _abc_impl = <_abc._abc_data object>¶
- _is_protocol = True¶
- tmuxp.cli.import_config.import_config(workspace_file, importfunc, parser=None, colors=None)[source]¶
Import a configuration from a workspace_file.
- Return type:
None
- Parameters:
workspace_file (str)
importfunc (ImportConfigFn)
parser (argparse.ArgumentParser | None)
colors (Colors | None)
- tmuxp.cli.import_config.command_import_tmuxinator(workspace_file, parser=None, color=None)[source]¶
Entrypoint for
tmuxp import tmuxinatorsubcommand.Converts a tmuxinator config from workspace_file to tmuxp format and import it into tmuxp.
- Return type:
None
- Parameters:
workspace_file (str)
parser (argparse.ArgumentParser | None)
color (CLIColorModeLiteral | None)
- tmuxp.cli.import_config.command_import_teamocil(workspace_file, parser=None, color=None)[source]¶
Entrypoint for
tmuxp import teamocilsubcommand.Convert a teamocil config from workspace_file to tmuxp format and import it into tmuxp.
- Return type:
None
- Parameters:
workspace_file (str)
parser (argparse.ArgumentParser | None)
color (CLIColorModeLiteral | None)