From 1228c8dc2b1624c8e8c866107c3768d8a47fad29 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sun, 6 Aug 2017 11:28:14 +0100 Subject: Add config list example to config help And a newline. --- lib/gitano/command.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/gitano/command.lua b/lib/gitano/command.lua index 317d32a..e7a61cb 100644 --- a/lib/gitano/command.lua +++ b/lib/gitano/command.lua @@ -398,11 +398,17 @@ View and manipulate the configuration of a repository. then you should set the filter exactly to `foo.*` which will cause the show command to expand list keys into the form `foo.i_N` where N is the index in the list. + + For example: `config sampler set project.readers.* alice`, + and `config sampler set project.readers.* bob` will add users alice and + bob to the `project.readers` list for the sampler.git repository. + * config set key value Set the given configuration key to the given value. If the key ends in `.*` then the system will add the given value to the end of the list represented by the key. To replace a specific entry, set the specific `i_N` entry to the value you want to replace it. + * config {del,delete,rm} key Removes the given key from the configuration set. If the key ends in `.*` then the system will remove all configuration values below that prefix. -- cgit v1.2.1