From fae8cf0fa90c91455f824eed93d066724d96ac67 Mon Sep 17 00:00:00 2001 From: Honza Pokorny Date: Wed, 10 Jul 2013 12:22:18 -0300 Subject: [PATCH 1/3] Allow user to run many configs at once --- pytmux/cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pytmux/cli.py b/pytmux/cli.py index 622d117..0ad2277 100644 --- a/pytmux/cli.py +++ b/pytmux/cli.py @@ -2,7 +2,7 @@ Usage: pytmux list - pytmux run + pytmux run ... pytmux edit [--copy ] pytmux doctor pytmux -h | --help @@ -10,7 +10,7 @@ Commands: list Lists all configs. - run Runs the specified config. + run ... Runs the specified config. edit Edits the specified config, with --copy will make a new config based on the one specified. doctor Validates all of you configs. @@ -38,7 +38,8 @@ def main(): if arguments['list']: list_configs() elif arguments['run']: - run_config(arguments['']) + for config in arguments['']: + run_config(config) elif arguments['edit']: edit_config(arguments[''], arguments['--copy'], arguments['']) From 19fa2e65cc667106fc6db06bca468db5ef4e5614 Mon Sep 17 00:00:00 2001 From: Honza Pokorny Date: Wed, 10 Jul 2013 13:53:32 -0300 Subject: [PATCH 2/3] Better run command documentation --- pytmux/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytmux/cli.py b/pytmux/cli.py index 0ad2277..0c9a6a4 100644 --- a/pytmux/cli.py +++ b/pytmux/cli.py @@ -10,7 +10,8 @@ Commands: list Lists all configs. - run ... Runs the specified config. + run ... Runs the specified config. The last config will end + up on the screen. edit Edits the specified config, with --copy will make a new config based on the one specified. doctor Validates all of you configs. From 13372f30a85691f17eb558f82c6798fb5e501a4c Mon Sep 17 00:00:00 2001 From: Honza Pokorny Date: Wed, 10 Jul 2013 13:54:52 -0300 Subject: [PATCH 3/3] Add multi config for run command to docs --- docs/usage.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index b711525..dd298f8 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -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 ~~~~~~