diff options
author | Michael Muré <batolettre@gmail.com> | 2022-09-10 11:09:19 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-11-20 17:18:09 +0100 |
commit | acc9a6f3a6df2961c3ae44352216d915cb9b5315 (patch) | |
tree | e159372673104ade1f15ddc1a84aa9da93e93552 /repository/config.go | |
parent | a3fa445a9c76631c4cd16f93e1c1c68a954adef7 (diff) | |
download | git-bug-acc9a6f3a6df2961c3ae44352216d915cb9b5315.tar.gz |
commands: reorg into different packages
Diffstat (limited to 'repository/config.go')
-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 |