Skip to content

Commit

Permalink
for-all-repos: add the --keep-config-unchanged arg
Browse files Browse the repository at this point in the history
This argument is useful for more than just the shell command, so add it
to the for-all-repos command as well.

Signed-off-by: Christopher Larson <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
kergoth authored and jan-kiszka committed Apr 25, 2024
1 parent a57e41a commit ac40ebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kas/plugins/for_all_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
from kas.config import Config
from kas.libcmds import Macro, Command, SetupHome
from kas.libkas import setup_parser_common_args
from kas.libkas import setup_parser_keep_config_unchanged_arg
from kas.libkas import setup_parser_preserve_env_arg
from kas.libkas import run_handle_preserve_env_arg
from kas.kasusererror import CommandExecError
Expand All @@ -91,6 +92,7 @@ class ForAllRepos:
def setup_parser(cls, parser):
setup_parser_common_args(parser)
setup_parser_preserve_env_arg(parser)
setup_parser_keep_config_unchanged_arg(parser)
parser.add_argument('command',
help='Command to be executed as a string.')

Expand Down

0 comments on commit ac40ebc

Please sign in to comment.