def export(cdap_instance, namespace, type, output_dir): ''' Export Pipelines ''' click.echo(click.style('Export Pipeline(s)', fg='green', bold=True)) click.echo('Namespace: %s \nPipeline(s): %s' % (namespace, type)) p = Pipeline(cdap_instance) p.connect() # p.export(n='default', p='deployed', output_dir='~/my_pipelines') p.export(ns=namespace, p=type, output_dir=output_dir)
def export_all(cdap_instance): ''' Export All Pipelines ''' click.echo(click.style('Exporting All Pipeline(s)', fg='green', bold=True)) p = Pipeline(cdap_instance) p.connect() p.export()