2020-08-18 13:56:58 +00:00
|
|
|
# local
|
2020-08-19 01:22:03 +00:00
|
|
|
from .utils.project import Project
|
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):
|
|
|
|
result = True
|
|
|
|
|
2020-08-19 01:22:03 +00:00
|
|
|
for project in Project.from_args(args):
|
|
|
|
result = project.disable()
|
2020-08-18 13:56:58 +00:00
|
|
|
|
|
|
|
return result
|