1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-22 21:03:00 +00:00
kiwi-scp/src/kiwi/subcommands/disable.py

20 lines
473 B
Python
Raw Normal View History

2020-08-18 13:56:58 +00:00
# local
from .utils.project import Projects
2020-08-18 13:56:58 +00:00
from ._subcommand import ProjectCommand
class DisableCommand(ProjectCommand):
"""kiwi disable"""
def __init__(self):
super().__init__(
'disable', num_projects='+',
description="Disable whole project(s) in this instance"
)
def run(self, runner, config, args):
return all([
project.disable()
for project in Projects.from_args(args)
])