Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#981): Add bruno methods to allow vars to be deleted and to check for the existence of vars #1714

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trusta
Copy link
Contributor

@trusta trusta commented Mar 3, 2024

Description

Solves #981

Add methods to Bru to manipulate env and collection variables :

  • clearEnvVars() : Clear all variables from the environment
  • hasEnvVar(key) : Check for the existence of a variable in the environment with the specified name
  • unsetEnvVar(key) : Remove the specified variable from the environment
  • clearVars() : Clear all variables from the collection
  • hasVar(key) : Check for the existence of a variable in the collection with the specified name
  • unsetVar(key) : Remove the specified variable from the collection

I also added the completion in app :

image

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

@trusta trusta force-pushed the feat/add-bruno-vars-deletion branch 7 times, most recently from 174f5de to 0073f2e Compare March 3, 2024 12:53
@trusta trusta force-pushed the feat/add-bruno-vars-deletion branch from 0073f2e to d1caec7 Compare April 15, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants