def db_init(): """Initialise database.""" try: init_db() click.echo(click.style('DB Created.', fg='green')) except Exception as e: click.echo('Something went wrong: {0}'.format(e)) sys.exit(1)
def db_init(): """Initialise database.""" try: init_db() click.echo(click.style("DB Created.", fg="green")) except Exception as e: click.echo("Something went wrong: {0}".format(e)) sys.exit(1)
def db(): """Initialize database fixture.""" from reana_db.database import init_db init_db() Resource.initialise_default_resources()
def db(): """Initialize database fixture.""" from reana_db.database import init_db init_db()
def init(): """Show REANA database migration recipes history.""" init_db() click.secho("Database initialised.", fg="green")