@beauraines/rtm-cli 1.8.0 → 1.8.2
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/.github/dependabot.yml +5 -0
- package/CHANGELOG.md +19 -0
- package/build.js +1 -1
- package/package.json +7 -6
- package/src/cmd/notes.js +4 -0
- package/src/cmd/task.js +2 -0
- package/src/cmd/url.js +2 -2
package/.github/dependabot.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.8.2](https://github.com/beauraines/rtm-cli/compare/v1.8.1...v1.8.2) (2023-04-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** bump @beauraines/rtm-api from 1.6.0 to 1.7.0 ([72a4430](https://github.com/beauraines/rtm-cli/commit/72a44307895ce15fc3f9282aca44bcdc61ab923c))
|
|
11
|
+
* **deps:** bump @beauraines/rtm-api from 1.6.0 to 1.7.0 ([#37](https://github.com/beauraines/rtm-cli/issues/37)) ([bd36402](https://github.com/beauraines/rtm-cli/commit/bd364020c07f33ac335dc7cb481d32be642400f8))
|
|
12
|
+
|
|
13
|
+
### [1.8.1](https://github.com/beauraines/rtm-cli/compare/v1.8.0...v1.8.1) (2023-03-12)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* ensures build command does not purge gitkeep ([feda117](https://github.com/beauraines/rtm-cli/commit/feda117e8abe32d7d3e25645f6d7adb8baffa6a9))
|
|
19
|
+
* updates eslint and pkg ([0eab5ed](https://github.com/beauraines/rtm-cli/commit/0eab5edd0581865af562a28f7e31b8ee8ebe7f67))
|
|
20
|
+
* updates to latest archiver ([bbb9ccb](https://github.com/beauraines/rtm-cli/commit/bbb9ccb215b6a729f0eea737eee76ab52568606c))
|
|
21
|
+
* updates to latest open package ([1f5f9e3](https://github.com/beauraines/rtm-cli/commit/1f5f9e39eee07712e8adb95e0388dd97d5c13876))
|
|
22
|
+
* updates to v4 date-format ([ceaa7c0](https://github.com/beauraines/rtm-cli/commit/ceaa7c051a041d8a1ed8eedb423b37f9caf806f2))
|
|
23
|
+
|
|
5
24
|
## [1.8.0](https://github.com/beauraines/rtm-cli/compare/v1.7.3...v1.8.0) (2023-03-12)
|
|
6
25
|
|
|
7
26
|
|
package/build.js
CHANGED
|
@@ -26,7 +26,7 @@ function clean() {
|
|
|
26
26
|
console.log();
|
|
27
27
|
console.log("CLEANING...");
|
|
28
28
|
let files = fs.readdirSync(binPath);
|
|
29
|
-
for ( let file of files ) {
|
|
29
|
+
for ( let file of files.filter(x=>x!= '.gitkeep') ) {
|
|
30
30
|
fs.unlinkSync(path.normalize(binPath + '/' + file));
|
|
31
31
|
}
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beauraines/rtm-cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "RTM CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rtm",
|
|
@@ -36,14 +36,15 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/beauraines/rtm-cli#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"chalk": "^4.0.0",
|
|
40
39
|
"@beauraines/rtm-api": "^1.6.0",
|
|
40
|
+
"chalk": "^4.0.0",
|
|
41
41
|
"cli-table3": "^0.6.3",
|
|
42
|
-
"commander": "^
|
|
42
|
+
"commander": "^10.0.0",
|
|
43
43
|
"copy-paste": "^1.3.0",
|
|
44
|
+
"dateformat": "^4.0.0",
|
|
45
|
+
"debug": "^4.3.4",
|
|
44
46
|
"deepmerge": "^4.0.0",
|
|
45
|
-
"
|
|
46
|
-
"opn": "^5.4.0",
|
|
47
|
+
"open": "^8.4.2",
|
|
47
48
|
"ora": "^5.0.0",
|
|
48
49
|
"prompt-sync": "^4.2.0",
|
|
49
50
|
"should-release": "^1.2.0",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"window-size": "^1.1.0"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"archiver": "^
|
|
55
|
+
"archiver": "^5.3.1",
|
|
55
56
|
"eslint": "^8.34.0",
|
|
56
57
|
"eslint-plugin-jest": "^27.2.1",
|
|
57
58
|
"jest": "^29.4.3",
|
package/src/cmd/notes.js
CHANGED
|
@@ -6,6 +6,7 @@ const { prompt } = require('../utils/prompt.js');
|
|
|
6
6
|
const finish = require('../utils/finish.js');
|
|
7
7
|
const filter = require('../utils/filter')
|
|
8
8
|
const { USER_CONFIG } = require('../utils/config.js');
|
|
9
|
+
const debug = require('debug')('rtm-cli-notes');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
let NOTES = [];
|
|
@@ -64,6 +65,7 @@ function _process(index, count=1, max=1) {
|
|
|
64
65
|
|
|
65
66
|
// Get Task
|
|
66
67
|
let filterString = filter("hasNotes:true")
|
|
68
|
+
// TODO this should be switched to rtmIndexFetchTask(index,filterString) like in url.js
|
|
67
69
|
user.tasks.getTask(index, filterString, function(err, task) {
|
|
68
70
|
if ( err ) {
|
|
69
71
|
if ( err.code === -3 ) {
|
|
@@ -75,6 +77,7 @@ function _process(index, count=1, max=1) {
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
if ( task ) {
|
|
80
|
+
debug(task)
|
|
78
81
|
NOTES.push({
|
|
79
82
|
index: index,
|
|
80
83
|
name: task.name,
|
|
@@ -106,6 +109,7 @@ function _processFinished(count, max) {
|
|
|
106
109
|
let styles = config.get().styles;
|
|
107
110
|
|
|
108
111
|
// Print NOTES
|
|
112
|
+
debug(JSON.stringify(NOTES))
|
|
109
113
|
for ( let i = 0; i < NOTES.length; i++ ) {
|
|
110
114
|
log.style(_pad(NOTES[i].index , NOTES.length), styles.index);
|
|
111
115
|
log.style(' ');
|
package/src/cmd/task.js
CHANGED
|
@@ -5,6 +5,7 @@ const config = require('../utils/config.js');
|
|
|
5
5
|
const finish = require('../utils/finish.js');
|
|
6
6
|
const filter = require('../utils/filter');
|
|
7
7
|
const { indexPrompt } = require('../utils/prompt')
|
|
8
|
+
const debug = require('debug')('rtm-cli-task');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
let TASKS = [];
|
|
@@ -75,6 +76,7 @@ module.exports = {
|
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
function displayTask(taskDetails) {
|
|
79
|
+
debug(taskDetails)
|
|
78
80
|
let index = taskDetails.index;
|
|
79
81
|
// eslint-disable-next-line no-unused-vars
|
|
80
82
|
const { _list, list_id, taskseries_id, task_id, _index, name, priority, start, due, completed, isRecurring, isSubtask, estimate, url, tags, notes ,...otherAttributes } = taskDetails.task;
|
package/src/cmd/url.js
CHANGED
|
@@ -5,7 +5,7 @@ const config = require('../utils/config.js');
|
|
|
5
5
|
const finish = require('../utils/finish.js');
|
|
6
6
|
const filter = require('../utils/filter');
|
|
7
7
|
const { indexPrompt } = require('../utils/prompt')
|
|
8
|
-
const
|
|
8
|
+
const open = require('open');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
let URLS = [];
|
|
@@ -68,7 +68,7 @@ async function action(args, env) {
|
|
|
68
68
|
// Open URL
|
|
69
69
|
if ( OPEN ) {
|
|
70
70
|
for ( let i = 0; i < URLS.length; i++ ) {
|
|
71
|
-
|
|
71
|
+
open(URLS[i].url, {wait: false})//.then(function() {});
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|