Skip to content

Introduce gdk config set <key> <value>

Overview

As the number of experimental settings and new settings increase, it could make sense to implement the ability to manage settings via the command line.

Proposal

The basic usage would be:

gdk config set <key> <value>

(we already have gdk config get <key> implemented)

I'm imagining a scenario where a new setting is introduced and we display a message to the user about its existence as well as including the exact command line to run to enable the new setting, e.g.

-------------------------------------------------------------------------------------------
👋 A new setting is available!

Setting `gdk.experimental.quiet` reduces console output by ~85%. You can enable by running:

  gdk config set gdk.experimental.quiet true

More detail at https://gitlab.com/gitlab-org/gitlab-development-kit/-/merge_requests/1267

Action - [ENTER] to continue.
-------------------------------------------------------------------------------------------

Thoughts @deuley, @leipert, @toon, @tigerwnz ?