Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ To start or switch to a session use::

pytmux run

You can provider a list of configs to run. Pytmux will run then in turn and
the last one will end up on the screen.

doctor
~~~~~~

Expand Down
8 changes: 5 additions & 3 deletions pytmux/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

Usage:
pytmux list
pytmux run <config>
pytmux run <config>...
pytmux edit <config> [--copy <other_config>]
pytmux doctor
pytmux -h | --help
pytmux --version

Commands:
list Lists all configs.
run <config> Runs the specified config.
run <config>... Runs the specified config. The last config will end
up on the screen.
edit <config> Edits the specified config, with --copy will make a new
config based on the one specified.
doctor Validates all of you configs.
Expand Down Expand Up @@ -38,7 +39,8 @@ def main():
if arguments['list']:
list_configs()
elif arguments['run']:
run_config(arguments['<config>'])
for config in arguments['<config>']:
run_config(config)
elif arguments['edit']:
edit_config(arguments['<config>'], arguments['--copy'],
arguments['<other_config>'])
Expand Down