Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge 4ef2c1e into 1bca491
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Jul 30, 2019
2 parents 1bca491 + 4ef2c1e commit afcfab3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reana_cluster/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import sys

import click

from reana_cluster.cli import cluster
from reana_cluster.config import (cluster_spec_default_file_path,
supported_backends)
Expand Down Expand Up @@ -117,3 +116,4 @@ def cli(ctx, loglevel, skip_validation, file,
cli.add_command(cluster.get)
cli.add_command(cluster.env)
cli.add_command(cluster.status)
cli.add_command(cluster.version)
12 changes: 9 additions & 3 deletions reana_cluster/cli/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@

import click
import yaml

from reana_cluster.config import (DEFAULT_REANA_DB_SECRET_NAME,
reana_cluster_ready_necessary_components,
reana_env_exportable_info_components)
from reana_cluster.utils import (build_component_url,
create_reana_db_secret,
from reana_cluster.utils import (build_component_url, create_reana_db_secret,
delete_reana_db_secret,
is_reana_db_secret_created)
from reana_cluster.version import __version__
from reana_commons.utils import click_table_printer


Expand Down Expand Up @@ -312,5 +311,12 @@ def status(ctx, component):
sys.exit(1)


@click.command(help='Show version.')
@click.pass_context
def version(ctx):
"""Show version."""
click.echo(__version__)


verify.add_command(cli_verify_backend)
verify.add_command(cli_verify_components)
2 changes: 1 addition & 1 deletion reana_cluster/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

from __future__ import absolute_import, print_function

__version__ = "0.5.0"
__version__ = "0.6.0.dev20190730"

0 comments on commit afcfab3

Please sign in to comment.