Skip to content
Snippets Groups Projects

WIP: Add explicit `--fetch` flag to bst commands

Closed Gökçen Nurlu requested to merge gokcen/no_auto_fetch into master
5 files
+ 23
8
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -777,8 +777,10 @@ def workspace_close(app, remove_dir, all_, elements):
help="Reset all open workspaces")
@click.argument('elements', nargs=-1,
type=click.Path(readable=False))
@click.option('--fetch', 'fetch_', default=False, is_flag=True,
help="Enable auto-fetching of element and related junction(s)")
@click.pass_obj
def workspace_reset(app, soft, track_, all_, elements):
def workspace_reset(app, soft, track_, all_, elements, fetch_):
"""Reset a workspace to its original state"""
# Check that the workspaces in question exist
@@ -798,7 +800,7 @@ def workspace_reset(app, soft, track_, all_, elements):
if all_:
elements = tuple(element_name for element_name, _ in app.context.get_workspaces().list())
app.stream.workspace_reset(elements, soft=soft, track_first=track_)
app.stream.workspace_reset(elements, soft=soft, track_first=track_, fetch=fetch_)
##################################################################
Loading