diff options
author | Michael Muré <batolettre@gmail.com> | 2022-11-22 14:53:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 14:53:15 +0100 |
commit | 70bd7377b6362127794f3a6198dd2c63863025fc (patch) | |
tree | e159372673104ade1f15ddc1a84aa9da93e93552 /repository | |
parent | a3fa445a9c76631c4cd16f93e1c1c68a954adef7 (diff) | |
parent | acc9a6f3a6df2961c3ae44352216d915cb9b5315 (diff) | |
download | git-bug-70bd7377b6362127794f3a6198dd2c63863025fc.tar.gz |
Merge pull request #870 from MichaelMure/cli-reorg
commands: reorg into different packages
Diffstat (limited to 'repository')
-rw-r--r-- | repository/config.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/repository/config.go b/repository/config.go index 4db8d4be..c6880b7d 100644 --- a/repository/config.go +++ b/repository/config.go @@ -26,7 +26,7 @@ type ConfigRead interface { // there is zero or more than one entry for this key ReadBool(key string) (bool, error) - // ReadBool read a single string value from the config + // ReadString read a single string value from the config // Return ErrNoConfigEntry or ErrMultipleConfigEntry if // there is zero or more than one entry for this key ReadString(key string) (string, error) @@ -38,13 +38,13 @@ type ConfigRead interface { } type ConfigWrite interface { - // Store writes a single key/value pair in the config + // StoreString writes a single string key/value pair in the config StoreString(key, value string) error - // Store writes a key and timestamp value to the config + // StoreTimestamp writes a key and timestamp value to the config StoreTimestamp(key string, value time.Time) error - // Store writes a key and boolean value to the config + // StoreBool writes a key and boolean value to the config StoreBool(key string, value bool) error // RemoveAll removes all key/value pair matching the key prefix |