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: add config unset flag #178

Merged

Conversation

dbolson
Copy link
Contributor

@dbolson dbolson commented Apr 15, 2024

The unset flag takes a value removes it from the config file if it is relevant. It ignores arbitrary keys and for now only supports:

  • access-token
  • base-uri

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

The unset flag takes a value removes it from the config file if
it is relevant. It ignores arbitrary keys and for now only supports:

access-token
base-uri
@dbolson dbolson merged commit 11e5f70 into sc-240202/add-config-set-flag Apr 16, 2024
1 check passed
@dbolson dbolson deleted the sc-240202/add-config-unset-flag branch April 16, 2024 20:28
dbolson added a commit that referenced this pull request Apr 16, 2024
* Adds support for ldcli config --set

The set flag takes a key/value pair and writes them to the config file
if they are relevant. It ignores arbitrary keys and for now only
supports:

* access-token
* base-uri

* Add config unset flag (#178)

The unset flag takes a value removes it from the config file if
it is relevant. It ignores arbitrary keys and for now only supports:

access-token
base-uri
dbolson added a commit that referenced this pull request Apr 16, 2024
* Find or create config file when reading values from it

* Write config file after running config commands

* feat: add config set flag (#177)

* Adds support for ldcli config --set

The set flag takes a key/value pair and writes them to the config file
if they are relevant. It ignores arbitrary keys and for now only
supports:

* access-token
* base-uri

* Add config unset flag (#178)

The unset flag takes a value removes it from the config file if
it is relevant. It ignores arbitrary keys and for now only supports:

access-token
base-uri
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