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

20 lines
459 B
Python
Raw Normal View History

2020-08-18 13:56:58 +00:00
# local
2020-08-19 15:21:38 +00:00
from ..subcommand import ProjectCommand
2020-08-18 13:56:58 +00:00
class EnableCommand(ProjectCommand):
"""kiwi enable"""
def __init__(self):
super().__init__(
'enable', num_projects='+',
action="Enabling",
2020-08-18 13:56:58 +00:00
description="Enable whole project(s) in this instance"
)
def _run_projects(self, runner, args, projects):
return all([
project.enable()
for project in projects
])