Skip to content

Commit 5b08012

Browse files
committed
flake8
1 parent 6fa0cab commit 5b08012

File tree

1 file changed

+26
-16
lines changed

1 file changed

+26
-16
lines changed

tmuxp/cli.py

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ def cli(log_level):
309309
"""Manage tmux sessions.
310310
311311
Pass the "--help" argument to any command to see detailed help.
312-
See detailed documentation and examples at http://tmuxp.readthedocs.io/en/latest/"""
312+
See detailed documentation and examples at:
313+
http://tmuxp.readthedocs.io/en/latest/"""
313314
try:
314315
has_required_tmux_version()
315316
except exc.TmuxpException as e:
@@ -357,7 +358,8 @@ def startup(config_dir):
357358
def command_freeze(session_name, socket_name, socket_path):
358359
"""Snapshot a session into a config.
359360
360-
If SESSION_NAME is provided, snapshot that session. Otherwise, use the current session."""
361+
If SESSION_NAME is provided, snapshot that session. Otherwise, use the
362+
current session."""
361363

362364
t = Server(
363365
socket_name=socket_name,
@@ -461,20 +463,23 @@ def command_load(ctx, config, socket_name, socket_path, answer_yes,
461463
462464
CONFIG is a specifier for a configuration file.
463465
464-
If CONFIG is a path to a directory, tmuxp will search it for ".tmuxp.{yaml,yml,json}".
466+
If CONFIG is a path to a directory, tmuxp will search it for
467+
".tmuxp.{yaml,yml,json}".
465468
466-
If CONFIG is has no directory component and only a filename, e.g. "myconfig.yaml", tmuxp will
467-
search the users's config directory for that file.
469+
If CONFIG is has no directory component and only a filename, e.g.
470+
"myconfig.yaml", tmuxp will search the users's config directory for that
471+
file.
468472
469-
If CONFIG has no directory component, and only a name with no extension, e.g. "myconfig",
470-
tmuxp will search the users's config directory for any file with the extension ".yaml", ".yml",
471-
or ".json" that matches that name.
473+
If CONFIG has no directory component, and only a name with no extension,
474+
e.g. "myconfig", tmuxp will search the users's config directory for any
475+
file with the extension ".yaml", ".yml", or ".json" that matches that name.
472476
473-
If multiple configuration files that match a given CONFIG are found, tmuxp will warn and pick
474-
the first one found.
477+
If multiple configuration files that match a given CONFIG are found, tmuxp
478+
will warn and pick the first one found.
475479
476-
If multiple CONFIGs are provided, workspaces will be created for all of them. The last one
477-
provided will be attached. The others will be created in detached mode.
480+
If multiple CONFIGs are provided, workspaces will be created for all of
481+
them. The last one provided will be attached. The others will be created in
482+
detached mode.
478483
"""
479484
util.oh_my_zsh_auto_title()
480485

@@ -567,24 +572,29 @@ def import_config(configfile, importfunc):
567572
sys.exit()
568573

569574

570-
@import_config_cmd.command(name='teamocil', short_help='Convert and import a teamocil config.')
575+
@import_config_cmd.command(name='teamocil',
576+
short_help='Convert and import a teamocil config.')
571577
@click.argument(
572578
'configfile', click.Path(exists=True), nargs=1,
573579
callback=_create_resolve_config_argument(get_teamocil_dir)
574580
)
575581
def command_import_teamocil(configfile):
576-
"""Convert a teamocil config from CONFIGFILE to tmuxp format and import it into tmuxp."""
582+
"""Convert a teamocil config from CONFIGFILE to tmuxp format and import
583+
it into tmuxp."""
577584

578585
import_config(configfile, config.import_teamocil)
579586

580587

581-
@import_config_cmd.command(name='tmuxinator', short_help='Convert and import a tmuxinator config.')
588+
@import_config_cmd.command(
589+
name='tmuxinator',
590+
short_help='Convert and import a tmuxinator config.')
582591
@click.argument(
583592
'configfile', click.Path(exists=True), nargs=1,
584593
callback=_create_resolve_config_argument(get_tmuxinator_dir)
585594
)
586595
def command_import_tmuxinator(configfile):
587-
"""Convert a tmuxinator config from CONFIGFILE to tmuxp format and import it into tmuxp."""
596+
"""Convert a tmuxinator config from CONFIGFILE to tmuxp format and import
597+
it into tmuxp."""
588598
import_config(configfile, config.import_tmuxinator)
589599

590600

0 commit comments

Comments
 (0)