pnp / pnp/cli-microsoft365

Return default value when config value is not set

Open
#6,351 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement on hold
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.

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.