kiwi-scp/src/kiwi/subcommands/disable.py
2020-08-20 14:40:49 +02:00

19 lines
459 B
Python

# local
from ..subcommand import ProjectCommand
class DisableCommand(ProjectCommand):
"""kiwi disable"""
def __init__(self):
super().__init__(
'disable', num_projects='+',
action="Disabling",
description="Disable project(s) in this instance"
)
def _run_projects(self, runner, args, projects):
return all([
project.disable()
for project in projects
])