Return default value when config value is not set
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 413
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 21
Description
When I run cli config get --key prompt for example, and I haven't set any config value with this key, the command is just returning nothing.
In my opinion, this is not really a great user experience. It can be really confusing for users. When I encounter this, I have to look it up in the docs to find the default value for this config variable.
I suggest that when a config value is not found, we just return the default value.
On hold as long as the following issue is not resolved:
- #6186
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the related issue #6186, since this work is explicitly on hold until it is resolved. Then trace the cli config get --key prompt entry point and identify how unset keys are handled; done means the command returns the documented default value instead of blank output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100