notedux 1.0.8 → 1.0.9
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.
- package/notedux +6 -3
- package/package.json +2 -2
package/notedux
CHANGED
|
@@ -69,9 +69,11 @@ delete_token() {
|
|
|
69
69
|
[Yy]|[Yy][Ee][Ss])
|
|
70
70
|
rm -f "$CONFIG_FILE"
|
|
71
71
|
echo "Token deleted."
|
|
72
|
+
return 0
|
|
72
73
|
;;
|
|
73
74
|
*)
|
|
74
75
|
echo "Operation cancelled."
|
|
76
|
+
return 1
|
|
75
77
|
;;
|
|
76
78
|
esac
|
|
77
79
|
}
|
|
@@ -112,10 +114,10 @@ generate_token() {
|
|
|
112
114
|
exit 1
|
|
113
115
|
fi
|
|
114
116
|
|
|
117
|
+
echo "Token generated."
|
|
115
118
|
|
|
116
119
|
save_token "$TOKEN"
|
|
117
120
|
|
|
118
|
-
echo "Token generated."
|
|
119
121
|
echo "$TOKEN"
|
|
120
122
|
}
|
|
121
123
|
|
|
@@ -403,8 +405,9 @@ case "$COMMAND" in
|
|
|
403
405
|
;;
|
|
404
406
|
|
|
405
407
|
settoken)
|
|
406
|
-
delete_token
|
|
407
|
-
|
|
408
|
+
if delete_token; then
|
|
409
|
+
save_token "$1"
|
|
410
|
+
fi
|
|
408
411
|
;;
|
|
409
412
|
|
|
410
413
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notedux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
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.
|
|
22
|
+
"notedux": "^1.0.8"
|
|
23
23
|
}
|
|
24
24
|
}
|