diff options
author | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-08-06 11:28:14 +0100 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-08-06 11:29:52 +0100 |
commit | 1228c8dc2b1624c8e8c866107c3768d8a47fad29 (patch) | |
tree | b5eed924d5401a3d612ccaaf0269c68e0b41a65e | |
parent | eb678c2024a66f3a0f9c3d20495c8ed2d738b3d8 (diff) | |
download | gitano-1228c8dc2b1624c8e8c866107c3768d8a47fad29.tar.gz |
Add config list example to config help
And a newline.
-rw-r--r-- | lib/gitano/command.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 <reponame> 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 <reponame> {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. |