Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type=cli.ConfigPath(exists=True, config_dir=(str(configdir))),
nargs=-1,
)
def config_cmd(config):
click.echo(config)
@click.argument('config', type=cli.ConfigPath(exists=True), nargs=-1)
def config_cmd(config):
click.echo(config)
'configfile', type=ConfigPath(exists=True, config_dir=get_teamocil_dir), nargs=1
)
def command_import_teamocil(configfile):
"""Convert a teamocil config from CONFIGFILE to tmuxp format and import
it into tmuxp."""
import_config(configfile, config.import_teamocil)
def __init__(self, config_dir=None, *args, **kwargs):
super(ConfigPath, self).__init__(*args, **kwargs)
self.config_dir = config_dir
@click.argument('config', type=ConfigPath(exists=True), nargs=-1)
@click.option('-S', 'socket_path', help='pass-through for tmux -S')
@click.option('-L', 'socket_name', help='pass-through for tmux -L')
@click.option('--yes', '-y', 'answer_yes', help='yes', is_flag=True)
@click.option(
'-d', 'detached', help='Load the session without attaching it', is_flag=True
)
@click.option(
'colors',
'-2',
flag_value=256,
default=True,
help='Force tmux to assume the terminal supports 256 colours.',
)
@click.option(
'colors',
'-8',