mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-23 05:13:01 +00:00
20 lines
501 B
Python
20 lines
501 B
Python
# local
|
|
from .utils.project import Projects
|
|
from ._subcommand import ProjectCommand
|
|
|
|
|
|
class DisableCommand(ProjectCommand):
|
|
"""kiwi disable"""
|
|
|
|
def __init__(self):
|
|
super().__init__(
|
|
'disable', num_projects='+',
|
|
action="Disabling",
|
|
description="Disable whole project(s) in this instance"
|
|
)
|
|
|
|
def _run_projects(self, runner, args, projects):
|
|
return all([
|
|
project.disable()
|
|
for project in projects
|
|
])
|