accounts and email
This commit is contained in:
@@ -224,6 +224,12 @@ struct CLI {
|
||||
config.syncFolder = value
|
||||
case "--upload-folder":
|
||||
config.defaultUploadFolder = value
|
||||
case "--new-note":
|
||||
guard let action = NewNoteAction(rawValue: value) else {
|
||||
print("Invalid new note action: \(value). Use clipboard or editor.")
|
||||
throw CLIError.invalidArguments
|
||||
}
|
||||
config.newNoteAction = action
|
||||
default:
|
||||
print("Unknown config option: \(arg)")
|
||||
throw CLIError.invalidArguments
|
||||
@@ -237,6 +243,7 @@ struct CLI {
|
||||
print(" Server: \(config.serverURL)")
|
||||
print(" Sync Folder: \(config.syncFolder ?? "(none)")")
|
||||
print(" Upload Folder: \(config.defaultUploadFolder ?? "(none)")")
|
||||
print(" New Note: \(config.effectiveNewNoteAction.rawValue)")
|
||||
print(" Token: \(config.apiToken != nil ? "(set)" : "(not set)")")
|
||||
}
|
||||
|
||||
@@ -382,6 +389,7 @@ struct CLI {
|
||||
--token <token> Set the API token
|
||||
--folder <path> Set the local folder used by sync
|
||||
--upload-folder <path> Set the server folder for readable uploads
|
||||
--new-note <action> Set New Note behavior: clipboard or editor
|
||||
|
||||
The menubar app and CLI use the same saved configuration.
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user