original_docstring: Clear the configuration (back to defaults).
docstring: Clear the configuration (back to defaults).
docstring_tokens: Clear the configuration ( back to defaults ) .
code: def reset(ctx, store):
      """Clear the configuration (back to defaults)."""
      store = SettingValueStore(store)
  
      settings = ctx.obj["settings"]
      session = ctx.obj["session"]
  
      try:
          metadata = settings.reset(store=store, session=session)
      except StoreNotSupportedError as err:
          raise CliError(
              f"{settings.label.capitalize()} settings in {store.label} could not be reset: {err}"
          ) from err
  
      store = metadata["store"]
      click.secho(
          f"{settings.label.capitalize()} settings in {store.label} were reset",
          fg="green",
      )
code_tokens: def reset ( ctx , store ) : store = SettingValueStore ( store ) settings = ctx . obj [ "settings" ] session = ctx . obj [ "session" ] try : metadata = settings . reset ( store = store , session = session ) except StoreNotSupportedError as err : raise CliError ( f"{settings.label.capitalize()} settings in {store.label} could not be reset: {err}" ) from err store = metadata [ "store" ] click . secho ( f"{settings.label.capitalize()} settings in {store.label} were reset" , fg = "green" , )
short_docstring: Clear the configuration (back to defaults).
short_docstring_tokens: Clear the configuration ( back to defaults ) .
comment: """Clear the configuration (back to defaults)."""