forked from cerc-io/stack-orchestrator
Fix click integration
This commit is contained in:
1 parent
fbf9d17a64
commit
c9d42886d5
3 files changed
+36
-28
No files matched your search
@@ -0,0 +1,35 @@
|
||||
# Copyright © 2022 Cerc
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
||||
|
||||
import click
|
||||
|
||||
from app import setup_repositories
|
||||
from app import build_containers
|
||||
from app import deploy_system
|
||||
|
||||
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
|
||||
|
||||
@click.group(context_settings=CONTEXT_SETTINGS)
|
||||
@click.option('--quiet', default=False)
|
||||
@click.option('--verbose', default=False)
|
||||
@click.option('--dry-run', default=False)
|
||||
def cli():
|
||||
"""Example script."""
|
||||
print("Yo!")
|
||||
click.echo('Hello World!')
|
||||
|
||||
cli.add_command(setup_repositories.command,"setup-repositories")
|
||||
cli.add_command(build_containers.command,"build-containers")
|
||||
cli.add_command(deploy_system.command,"deploy-system")
|
||||
Reference in new issue
Block a user