mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-22 21:03:00 +00:00
21 lines
486 B
Python
21 lines
486 B
Python
# local
|
|
from .utils.project import Project
|
|
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):
|
|
result = True
|
|
|
|
for project in Project.from_args(args):
|
|
result = project.enable()
|
|
|
|
return result
|