(ctx, data_file)
Invoke the command synchronously
Invoke the command synchronously
Invoke the command synchronously
def invoke(ctx, data_file):
    """Invoke the command synchronously"""
    click.echo('invoking')
    response = ctx.invoke(data_file.read())
    log_data = base64.b64decode(response['LogResult'])
    click.echo(log_data)
    click.echo('Response:')
    click.echo(response['Payload'].read())
    click.echo('done')
def invoke ( ctx , data_file ) : click . echo ( 'invoking' ) response = ctx . invoke ( data_file . read ( ) ) log_data = base64 . b64decode ( response [ 'LogResult' ] ) click . echo ( log_data ) click . echo ( 'Response:' ) click . echo ( response [ 'Payload' ] . read ( ) ) click . echo ( 'done' )