kiwi-scp/src/kiwi/subcommands/disable.py

20 lines
465 B
Python
Raw Normal View History

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