diff --git a/oclif.manifest.json b/oclif.manifest.json new file mode 100644 index 0000000..15157a3 --- /dev/null +++ b/oclif.manifest.json @@ -0,0 +1 @@ +{"version":"0.1.2","commands":{"add-file":{"id":"add-file","description":"Append or prepend a file to a note identified by its title or id.\nThis call can't be performed if the app is a locked state.\nEncrypted notes can't be accessed with this call.\nReturns note's contents.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"edit":{"name":"edit","type":"boolean","char":"c","description":"place the cursor inside the note editor","allowNo":false},"filename":{"name":"filename","type":"option","char":"j","description":"override file name including extension"},"header":{"name":"header","type":"option","char":"u","description":"note title"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"id":{"name":"id","type":"option","char":"i","description":"note unique identifier"},"mode":{"name":"mode","type":"option","char":"m","description":"the allowed values are prepend, append, replace_all and replace (keep the note's title untouched)","options":["prepend","append","replace","replace_all"],"default":"append"},"new-window":{"name":"new-window","type":"boolean","char":"e","description":"open the note in an external window","allowNo":false},"open-note":{"name":"open-note","type":"boolean","char":"o","description":"display the new note in Bear's main or external window","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"title":{"name":"title","type":"option","char":"n","description":"note title"}},"args":[{"name":"file","description":"path to file you want to add"}]},"add-text":{"id":"add-text","description":"Append or prepend text to a note identified by its title or id.\nBeta encrypted notes can't be accessed with this call.\nReturns note's contents.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"edit":{"name":"edit","type":"boolean","char":"c","description":"place the cursor inside the note editor","allowNo":false},"exclude-trashed":{"name":"exclude-trashed","type":"boolean","char":"x","description":"exclude trashed notes","allowNo":false},"header":{"name":"header","type":"option","char":"u","description":"note title"},"id":{"name":"id","type":"option","char":"i","description":"note unique identifier"},"mode":{"name":"mode","type":"option","char":"m","description":"the allowed values are prepend, append, replace_all and replace (keep the note's title untouched)","options":["prepend","append","replace","replace_all"],"default":"append"},"new-line":{"name":"new-line","type":"boolean","char":"l","description":"if true and mode is append force the text to appear on a new line inside the note","allowNo":false},"new-window":{"name":"new-window","type":"boolean","char":"e","description":"open the note in an external window","allowNo":false},"open-note":{"name":"open-note","type":"boolean","char":"o","description":"display the new note in Bear's main or external window","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"tag for note"},"timestamp":{"name":"timestamp","type":"boolean","char":"d","description":"prepend the current date and time to the text","allowNo":false},"title":{"name":"title","type":"option","char":"n","description":"note title"}},"args":[{"name":"text","description":"note body"}]},"archive":{"id":"archive","description":"Move a note to bear archive and select the Archive sidebar item.\nThis call can't be performed if the app is a locked state.\nEncrypted notes can't be accessed with this call.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"search":{"name":"search","type":"option","char":"s","description":"string to search. search term is ignored if an id is provided."},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false}},"args":[{"name":"id","description":"note unique identifier"}]},"auth":{"id":"auth","description":"Authenticates Bear CLI commands that require an app generated token to work.\nGo to Bear → Help → API Token → Copy Token and paste into this command.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"api-token","description":"application token","required":true}]},"change-font":{"id":"change-font","description":"Change the selected Bear Font.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false}},"args":[{"name":"font","description":"font name"}]},"change-theme":{"id":"change-theme","description":"Change the selected Bear theme.\nSome themes may require a Bear Pro subscription.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false}},"args":[{"name":"theme","description":"theme name"}]},"create":{"id":"create","description":"Create a new note. Empty notes are not allowed.\nReturns unique note identifier of new note.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"edit":{"name":"edit","type":"boolean","char":"c","description":"place the cursor inside the note editor","allowNo":false},"file":{"name":"file","type":"option","char":"a","description":"path to a file attachment"},"filename":{"name":"filename","type":"option","char":"j","description":"override file name including extension"},"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"new-window":{"name":"new-window","type":"boolean","char":"e","description":"open the note in an external window","allowNo":false},"open-note":{"name":"open-note","type":"boolean","char":"o","description":"display the new note in Bear's main or external window","allowNo":false},"pin":{"name":"pin","type":"boolean","char":"p","description":"pin the note to the top of the list","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"tag for note"},"timestamp":{"name":"timestamp","type":"boolean","char":"d","description":"prepend the current date and time to the text","allowNo":false},"title":{"name":"title","type":"option","char":"n","description":"note title"}},"args":[{"name":"text","description":"note body"}]},"delete-tag":{"id":"delete-tag","description":"Delete an existing tag.\nThis call can't be performed if the app is a locked state.\nIf the tag contains any locked note this call will not be performed.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false}},"args":[{"name":"name","description":"tag name"}]},"grab-url":{"id":"grab-url","description":"Create a new note with the content of a web page.\nReturns unique note identifier of new note.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"pin":{"name":"pin","type":"boolean","char":"p","description":"pin the note to the top of the list","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"tag for note, if tags are specified in the Bear's web content prefences this parameter is ignored"},"wait":{"name":"wait","type":"boolean","char":"z","description":"if false, command returns immediately without waiting for note return value","allowNo":false}},"args":[{"name":"url","description":"url to grab"}]},"locked":{"id":"locked","description":"Select the Locked sidebar item.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false}},"args":[{"name":"search","description":"string to search"}]},"open-note":{"id":"open-note","description":"Fetch a note identified by its title or id.\nReturns the matched note's contents.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"title":{"name":"title","type":"option","char":"n","description":"note title"},"header":{"name":"header","type":"option","char":"u","description":"note title"},"exclude-trashed":{"name":"exclude-trashed","type":"boolean","char":"x","description":"exclude trashed notes","allowNo":false},"new-window":{"name":"new-window","type":"boolean","char":"e","description":"open the note in an external window","allowNo":false},"float":{"name":"float","type":"boolean","char":"f","description":"makes the external window float on top","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"open-note":{"name":"open-note","type":"boolean","char":"o","description":"display the new note in Bear's main or external window","allowNo":false},"selected":{"name":"selected","type":"boolean","char":"k","description":"return the note currently selected in Bear","allowNo":false},"pin":{"name":"pin","type":"boolean","char":"p","description":"pin the note to the top of the list","allowNo":false},"edit":{"name":"edit","type":"boolean","char":"c","description":"place the cursor inside the note editor","allowNo":false},"token":{"name":"token","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","default":"493C02-3A08BB-D7BA51"}},"args":[{"name":"id","description":"note unique identifier"}]},"open-tag":{"id":"open-tag","description":"Fetch all the notes which have a selected tag in bear.\nReturns list of unique note identifiers and note titles.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","default":"493C02-3A08BB-D7BA51"}},"args":[{"name":"name","description":"tag name"}]},"rename-tag":{"id":"rename-tag","description":"Rename an existing tag.\nThis call can't be performed if the app is a locked state.\nIf the tag contains any locked note this call will not be performed.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false}},"args":[{"name":"name","description":"tag name","required":true},{"name":"new-name","description":"new tag name"}]},"search":{"id":"search","description":"Fetch search results from Bear for all notes or for a specific tag.\nReturns list of unique note identifiers and note titles.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","description":"tag to search into"},"token":{"name":"token","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","default":"493C02-3A08BB-D7BA51"}},"args":[{"name":"term","description":"string to search"}]},"tags":{"id":"tags","description":"Fetch all the tags currently displayed in Bear's sidebar.\nReturns list of tag names.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"token":{"name":"token","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","required":true,"default":"493C02-3A08BB-D7BA51"}},"args":[]},"today":{"id":"today","description":"Fetch all notes in the Today sidebar item.\nReturns list of unique note identifiers and note titles.\nNOTE: this feature doesn't currently work as expected.\nBUG: There's an issue with bear that causes notes that match search not in Today to be returned.\nBUG: There's an issue where fetching Today's notes causes bear to hold process open.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"token":{"name":"token","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","default":"493C02-3A08BB-D7BA51"}},"args":[{"name":"search","description":"string to search"}]},"todo":{"id":"todo","description":"Fetch all notes in the Todo sidebar item.\nReturns list of unique note identifiers and note titles.\nBUG: There's an issue with bear that causes notes that match search with no Todo's to be returned.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"tokne":{"name":"tokne","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","default":"493C02-3A08BB-D7BA51"}},"args":[{"name":"search","description":"string to search"}]},"trash":{"id":"trash","description":"Move a note to bear trash and select the Trash sidebar item.\nThis call can't be performed if the app is a locked state.\nEncrypted notes can't be used with this call.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"search":{"name":"search","type":"option","char":"s","description":"string to search. search term is ignored if an id is provided."}},"args":[{"name":"id","description":"note unique identifier"}]},"untagged":{"id":"untagged","description":"Fetch all notes in the Untagged sidebar item.\nReturns list of unique note identifiers and note titles.","pluginName":"@sloansparger/bear","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"show-window":{"name":"show-window","type":"boolean","char":"w","description":"force the opening of bear main window","allowNo":false},"token":{"name":"token","type":"option","char":"y","description":"bear api token. defaults to api key provided to auth command.","default":"493C02-3A08BB-D7BA51"}},"args":[{"name":"search","description":"string to search"}]}}} \ No newline at end of file diff --git a/package.json b/package.json index bb57518..4b80bc3 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,7 @@ "repository": "sloansparger/bear", "homepage": "https://github.com/sloansparger/bear", "bugs": "https://github.com/sloansparger/bear/issues", - "keywords": [ - "bear", - "cli" - ], + "keywords": ["bear", "cli"], "main": "lib/index.js", "bin": { "bear": "./bin/run" @@ -46,12 +43,7 @@ "engines": { "node": ">=10.0.0" }, - "files": [ - "/bin", - "/lib", - "/npm-shrinkwrap.json", - "/oclif.manifest.json" - ], + "files": ["/bin", "/lib", "/npm-shrinkwrap.json", "/oclif.manifest.json"], "types": "lib/index.d.ts", "oclif": { "commands": "./lib/commands", @@ -66,7 +58,8 @@ "scripts": { "postpack": "rm -f oclif.manifest.json", "posttest": "eslint . --ext .ts --config .eslintrc", - "prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme", + "copy-xcall": "cp -r ./src/utils/xcall/xcall.app lib/utils/xcall && cp ./src/utils/xcall/xcall-license.txt ./lib/utils/xcall/xcall-license.txt", + "prepack": "rm -rf lib && tsc -b && npm run copy-xcall && oclif-dev manifest && oclif-dev readme", "test": "echo 'TODO'", "version": "oclif-dev readme && git add README.md" }