knative / knative/client

Add "config" command to manage configuration file

Open
#1,293 1 comment 1 reaction 1 assignee Claimed by @boaz0 View on GitHub
kind/feature triage/accepted
Dominant language
Go
Stars
387
Forks
274
Avg merge
1d 6h
Merged PRs (30d)
8

Description

### Feature request

Add a new command group `config` for managing `kn` configuration files

### Use case

`kn` can be customized by a local configuration file, that e.g. can specify how plugins are found or add additional sink mappings.

In order to provide an enhanced user experience to manages that configuration a new top-level command group, `config` is proposed.
The details of the subcommand still need to be fleshed out, but I could imagine having commands like:

```
# Create a default configuration file, with annotated comments for possible options
kn config init

# Set a configuration option for scalar options with scalar values. Key specified as JSON path
kn config set plugins.directory=~/.kn

# Get an individual configuration value or group of values
kn config get eventing

# Show the whole configuration
kn config show

# Specialized commands for specific use cases that involve list commands
kn config sink-mapping add svc --group core --version v1 --resource services
kn config sink-mapping delete svc
kn config sink-mapping list
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.