influxdata / influxdata/influx-cli
if there is only one config, consider marking it as active
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
If I only have one config, the config command does this:
```
% influx config list
Active Name URL Org
cloud https://eastus-1.azure.cloud2.influxdata.com 0261487478164c85
rickspencer@ip-192-168-1-239 ~ % influx config
Active Name URL Org
cloud https://eastus-1.azure.cloud2.influxdata.com 0261487478164c85
```
Perhaps the config should be marked as active because there is only one it behaves as if it is active.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the `influx config list` and `influx config` command entry points and how they determine the active configuration. Confirm the single-configuration case, then verify that the sole config is displayed as active in both command outputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100