mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-26 22:09:56 -04:00
Simply check if sanity check file should be generated based on nil input
This commit is contained in:
1 parent
28286788a0
commit
a18c3ea1d6
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -96,7 +96,7 @@ func LibmuttonInit(inputCB func(prompt string) string, clientSpecificCfg map[str
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// generate rcw sanity check file (if requested)
|
// generate rcw sanity check file (if requested)
|
||||||
if len(rcwPassword) > 0 {
|
if rcwPassword != nil {
|
||||||
err := RCWSanityCheckGen(rcwPassword)
|
err := RCWSanityCheckGen(rcwPassword)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ libmutton-based password manager clients should all share the same JSON configur
|
|||||||
|
|
||||||
On UNIX-like systems, this is located at `~/.config/libmutton/libmuttoncfg.json`. On Windows, it is located at `~\AppData\Local\libmutton\config\libmuttoncfg.json`.
|
On UNIX-like systems, this is located at `~/.config/libmutton/libmuttoncfg.json`. On Windows, it is located at `~\AppData\Local\libmutton\config\libmuttoncfg.json`.
|
||||||
|
|
||||||
If creating a third-party client that requires extra configuration to be stored, please use the `ClientSpecific` map in the `cfg.ConfigT` type (as used by `cfg.WriteConfig()`) to save your application-specific configuration.
|
If creating a third-party client that requires extra configuration to be stored, please use the `ClientSpecific` map in the `config.CfgT` type (as used by `config.Write()`) to save your application-specific configuration.
|
||||||
|
|
||||||
This ensures that a user can use multiple client applications with the same configuration while avoiding conflicts.
|
This ensures that a user can use multiple client applications with the same configuration while avoiding conflicts.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user