tmuxp convert - tmuxp.cli.convert¶
CLI for tmuxp convert subcommand.
- tmuxp.cli.convert.create_convert_subparser(parser)¶
Augment
argparse.ArgumentParserwithconvertsubcommand.- Return type:
argparse.ArgumentParser
- Parameters:
parser (argparse.ArgumentParser)
- exception tmuxp.cli.convert.ConvertUnknownFileType¶
Bases:
TmuxpExceptionRaise if tmuxp convert encounters an unknown filetype.
- tmuxp.cli.convert.command_convert(workspace_file, answer_yes, parser=None, color=None)¶
Entrypoint for
tmuxp convertconvert a tmuxp config between JSON and YAML.- Return type:
None
- Parameters:
workspace_file (str | pathlib.Path)
answer_yes (bool)
parser (argparse.ArgumentParser | None)
color (CLIColorModeLiteral | None)