notedux 1.0.8 → 1.0.10

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 -3
  2. package/package.json +2 -2
package/notedux CHANGED
@@ -15,6 +15,7 @@ show_help() {
15
15
  cat <<EOF
16
16
 
17
17
  Notedux CLI - Command-line client for the Notedux service (notedux.com).
18
+ Version 1.0.10
18
19
  Copyright (C) 2026 Dejan Sabados
19
20
  Licensed under the GNU GPL v3 or later.
20
21
  This program comes with ABSOLUTELY NO WARRANTY.
@@ -69,9 +70,11 @@ delete_token() {
69
70
  [Yy]|[Yy][Ee][Ss])
70
71
  rm -f "$CONFIG_FILE"
71
72
  echo "Token deleted."
73
+ return 0
72
74
  ;;
73
75
  *)
74
76
  echo "Operation cancelled."
77
+ return 1
75
78
  ;;
76
79
  esac
77
80
  }
@@ -112,10 +115,10 @@ generate_token() {
112
115
  exit 1
113
116
  fi
114
117
 
118
+ echo "Token generated."
115
119
 
116
120
  save_token "$TOKEN"
117
121
 
118
- echo "Token generated."
119
122
  echo "$TOKEN"
120
123
  }
121
124
 
@@ -403,8 +406,9 @@ case "$COMMAND" in
403
406
  ;;
404
407
 
405
408
  settoken)
406
- delete_token
407
- save_token "$@"
409
+ if delete_token; then
410
+ save_token "$1"
411
+ fi
408
412
  ;;
409
413
 
410
414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notedux",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Take notes from terminal",
5
5
  "bin": {
6
6
  "notedux": "notedux"
@@ -19,6 +19,6 @@
19
19
  "license": "GPL-2.0-only",
20
20
  "preferGlobal": true,
21
21
  "dependencies": {
22
- "notedux": "^1.0.7"
22
+ "notedux": "^1.0.8"
23
23
  }
24
24
  }