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

[Feature] Add command bru.rmVar(varType, key) and/or bru.rmEnvVar(key) #2464

Open
1 task done
bpoulaindev opened this issue Jun 17, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@bpoulaindev
Copy link
Contributor

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Add a command bru.rmVar(varType, key) that would allow users to unset a variable (equivalent of pm.environment.unset but more modular)
Javascript behavior (can be done in scripts tab) :
replace "toDelete" with the key to delete, and "envVariables" by another varType

bru = Object.entries(bru).reduce((acc, [key, value]) => {
  acc[key] = key === "envVariables" ?
    Object.fromEntries(Object.entries(value).filter(([k]) => k !== "toDelete")) :
    value;
  return acc;
}, {});

Mockups or Images of the feature

image
@bpoulaindev bpoulaindev added the enhancement New feature or request label Jun 17, 2024
@bpoulaindev bpoulaindev changed the title Add command bru.rmVar(varType, key) and/or bru.rmEnvVar(key) [Feature] Add command bru.rmVar(varType, key) and/or bru.rmEnvVar(key) Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant