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