notedux 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/notedux +7 -0
  2. package/package.json +1 -1
package/notedux CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  CONFIG_FILE="$HOME/.notedux.conf"
4
4
  API="https://notedux.com/api/note"
5
+
5
6
  show_help() {
6
7
  cat <<EOF
7
8
 
@@ -18,6 +19,7 @@ Commands:
18
19
  set <text> Replace note content
19
20
  generate Generate new token
20
21
  deltoken Delete saved token
22
+ settoken <token> Set token
21
23
  delall Delete all note content
22
24
  dellast Delete last line
23
25
  dell <number> Delete line by number
@@ -396,6 +398,11 @@ case "$COMMAND" in
396
398
  delete_token
397
399
  ;;
398
400
 
401
+ settoken)
402
+ delete_token
403
+ save_token "$@"
404
+ ;;
405
+
399
406
 
400
407
  delall)
401
408
  get_token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notedux",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Take notes from terminal",
5
5
  "bin": {
6
6
  "notedux": "notedux"