mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-03 23:57:23 -04:00
Implement notes editor (required rewrite of offline.ReadConfig)
This commit is contained in:
@@ -87,16 +87,17 @@ func main() {
|
||||
switch args[3] {
|
||||
case "password", "-p":
|
||||
if argsCount == 4 {
|
||||
cli.AddPasswordEntry(targetLocation, true)
|
||||
cli.AddEntry(targetLocation, true, false)
|
||||
} else {
|
||||
switch args[4] {
|
||||
case "show", "-s":
|
||||
cli.AddPasswordEntry(targetLocation, false)
|
||||
cli.AddEntry(targetLocation, false, false)
|
||||
default:
|
||||
cli.AddPasswordEntry(targetLocation, true)
|
||||
cli.AddEntry(targetLocation, true, false)
|
||||
}
|
||||
}
|
||||
case "note", "-n": // TODO cli.AddNoteEntry(targetLocation)
|
||||
case "note", "-n":
|
||||
cli.AddEntry(targetLocation, true, true)
|
||||
case "folder", "-f":
|
||||
offline.AddFolder(targetLocation)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user