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 request: hatch config unset #1843

Open
jpgoldberg opened this issue Dec 6, 2024 · 0 comments
Open

Feature request: hatch config unset #1843

jpgoldberg opened this issue Dec 6, 2024 · 0 comments

Comments

@jpgoldberg
Copy link

jpgoldberg commented Dec 6, 2024

There does not appear to be a mechanism other than finding and editing the config file to remove a configuration field. I suggest that an unset command be added to hatch config.

To illustrate the current behavior:

% hatch config set typo
Value for `typo`: some valule
New setting:
typo = "some valule"
% hatch config set typo
Value for `typo`: ""
New setting:
typo = "\"\""
% hatch config set typo
Value for `typo`: 
Value for `typo`: 
Value for `typo`: remove this
New setting:
typo = "remove this"
% hatch config unset typo
Usage: hatch config [OPTIONS] COMMAND [ARGS]...
Try 'hatch config -h' for help.

Error: No such command 'unset'. 
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

No branches or pull requests

1 participant