(ctx, search_id)
Show details for saved search.

    Args:
        ctx: Click CLI context object.
        search_id: Search ID from argument.
Show details for saved search.
Show details for saved search .
def describe_saved_search(ctx, search_id):
    """Show details for saved search.

    Args:
        ctx: Click CLI context object.
        search_id: Search ID from argument.
    """
    sketch = ctx.obj.sketch
    # TODO (berggren): Add support for saved search name.
    saved_search = sketch.get_saved_search(search_id=search_id)
    if not saved_search:
        click.echo('No such saved search')
        return
    filter_pretty = json.dumps(saved_search.query_filter, indent=2)
    click.echo(f'query_string: {saved_search.query_string}')
    click.echo(f'query_filter: {filter_pretty}')
def describe_saved_search ( ctx , search_id ) : sketch = ctx . obj . sketch # TODO (berggren): Add support for saved search name. saved_search = sketch . get_saved_search ( search_id = search_id ) if not saved_search : click . echo ( 'No such saved search' ) return filter_pretty = json . dumps ( saved_search . query_filter , indent = 2 ) click . echo ( f'query_string: {saved_search.query_string}' ) click . echo ( f'query_filter: {filter_pretty}' )