@beauraines/toggl-cli 2.3.1 → 2.3.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.
- package/.all-contributorsrc +36 -0
- package/.github/workflows/main.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/CHANGELOG.md +9 -0
- package/README.md +53 -23
- package/eslint.config.mjs +30 -0
- package/package.json +7 -8
- package/.eslintrc.json +0 -17
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
"README.md"
|
|
4
|
+
],
|
|
5
|
+
"imageSize": 100,
|
|
6
|
+
"commit": false,
|
|
7
|
+
"commitType": "docs",
|
|
8
|
+
"commitConvention": "angular",
|
|
9
|
+
"contributors": [
|
|
10
|
+
{
|
|
11
|
+
"login": "benthayer",
|
|
12
|
+
"name": "Ben Thayer",
|
|
13
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6099299?v=4",
|
|
14
|
+
"profile": "http://benthayer.com",
|
|
15
|
+
"contributions": [
|
|
16
|
+
"code"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"login": "saintedlama",
|
|
21
|
+
"name": "Christoph Walcher",
|
|
22
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/123820?v=4",
|
|
23
|
+
"profile": "http://yieldthedog.github.com/",
|
|
24
|
+
"contributions": [
|
|
25
|
+
"tool",
|
|
26
|
+
"projectManagement"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"contributorsPerLine": 7,
|
|
31
|
+
"skipCi": true,
|
|
32
|
+
"repoType": "github",
|
|
33
|
+
"repoHost": "https://github.com",
|
|
34
|
+
"projectName": "toggl-cli",
|
|
35
|
+
"projectOwner": "beauraines"
|
|
36
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
### [2.3.3](https://github.com/beauraines/toggl-cli/compare/v2.3.2...v2.3.3) (2024-06-21)
|
|
6
|
+
|
|
7
|
+
### [2.3.2](https://github.com/beauraines/toggl-cli/compare/v2.3.1...v2.3.2) (2024-06-20)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **deps:** bump debug from 4.3.4 to 4.3.5 ([6a6a62f](https://github.com/beauraines/toggl-cli/commit/6a6a62fda0f6e33b4cb8784c02d9a0eb177bebf2))
|
|
13
|
+
|
|
5
14
|
### [2.3.1](https://github.com/beauraines/toggl-cli/compare/v2.3.0...v2.3.1) (2024-05-25)
|
|
6
15
|
|
|
7
16
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
# toggl-cli-node
|
|
2
|
+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
3
|
+
[](#contributors-)
|
|
4
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
2
5
|
|
|
3
6
|
**UPDATED TO USE Toggl v9 API**
|
|
4
7
|
|
|
@@ -32,34 +35,36 @@ Configure your environment, with environment variables or a `.env` file in the p
|
|
|
32
35
|
|
|
33
36
|
## Features
|
|
34
37
|
|
|
35
|
-
| Feature
|
|
36
|
-
|
|
|
37
|
-
| Start time entry
|
|
38
|
-
| Start time entry with description
|
|
39
|
-
| Start time entry with project
|
|
40
|
-
| stop time entry
|
|
41
|
-
| Continue named time entry
|
|
42
|
-
| Report today by project
|
|
43
|
-
| Report this week by project by day
|
|
44
|
-
| Edit current time entry
|
|
45
|
-
| Use config from file
|
|
46
|
-
| Save config to file
|
|
47
|
-
| Refactor: Display and format modules
|
|
48
|
-
| Client: reset PAT
|
|
49
|
-
| Client: specify client name
|
|
50
|
-
| Colorize output
|
|
51
|
-
| Better table output
|
|
52
|
-
| List recent time entries
|
|
53
|
-
| Command line completion
|
|
54
|
-
| Delete time entry by id
|
|
55
|
-
| Edit other time entries than the current
|
|
56
|
-
| Display earlier time entries
|
|
38
|
+
| Feature | Available | Comments |
|
|
39
|
+
| --------------------------------------------------- | --------- | -------------------------------------------------------------------------------------- |
|
|
40
|
+
| Start time entry | ✅ | |
|
|
41
|
+
| Start time entry with description | ✅ | |
|
|
42
|
+
| Start time entry with project | ✅ | |
|
|
43
|
+
| stop time entry | ✅ | |
|
|
44
|
+
| Continue named time entry | ✅ | |
|
|
45
|
+
| Report today by project | ✅ | |
|
|
46
|
+
| Report this week by project by day | ✅ | |
|
|
47
|
+
| Edit current time entry | ✅ | |
|
|
48
|
+
| Use config from file | ✅ | |
|
|
49
|
+
| Save config to file | ✅ | |
|
|
50
|
+
| Refactor: Display and format modules | | |
|
|
51
|
+
| Client: reset PAT | | Is this really necessary? |
|
|
52
|
+
| Client: specify client name | ✅ | |
|
|
53
|
+
| Colorize output | ✅ | |
|
|
54
|
+
| Better table output | ✅ | |
|
|
55
|
+
| List recent time entries | ✅ | |
|
|
56
|
+
| Command line completion | ✅ | [#6](https://github.com/beauraines/toggl-cli-node/issues/6) |
|
|
57
|
+
| Delete time entry by id | ✅ | Contributed by @benthayer [#160](https://github.com/beauraines/toggl-cli/pull/160) |
|
|
58
|
+
| Edit other time entries than the current | | |
|
|
59
|
+
| Display earlier time entries | | |
|
|
60
|
+
| Add a completed time entry with start and end times | ✅ | Contributed by @benthayer [#165](https://github.com/beauraines/toggl-cli/pull/165) |
|
|
61
|
+
| Overlap detection on editing or adding entries | | Issue [#134](https://github.com/beauraines/toggl-cli/issues/134) |
|
|
57
62
|
|
|
58
63
|
|
|
59
64
|
|
|
60
65
|
## Planned Limitations
|
|
61
66
|
|
|
62
|
-
There are several features that I do not use from Toggl, so including them is a priority for me. I'm not opposed to them being in there and would welcome
|
|
67
|
+
There are several features that I do not use from Toggl, so including them is a priority for me. I'm not opposed to them being in there and would welcome contributions to include them.
|
|
63
68
|
|
|
64
69
|
1. tags
|
|
65
70
|
2. multiple workspaces
|
|
@@ -70,3 +75,28 @@ There are several features that I do not use from Toggl, so including them is a
|
|
|
70
75
|
I need to clean up and refactor the code and establish a few more helper and utility functions, but I'm open to contributions!
|
|
71
76
|
|
|
72
77
|
|
|
78
|
+
|
|
79
|
+
## Contributors ✨
|
|
80
|
+
|
|
81
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
85
|
+
<!-- prettier-ignore-start -->
|
|
86
|
+
<!-- markdownlint-disable -->
|
|
87
|
+
<table>
|
|
88
|
+
<tbody>
|
|
89
|
+
<tr>
|
|
90
|
+
<td align="center" valign="top" width="14.28%"><a href="http://benthayer.com"><img src="https://avatars.githubusercontent.com/u/6099299?v=4?s=100" width="100px;" alt="Ben Thayer"/><br /><sub><b>Ben Thayer</b></sub></a><br /><a href="https://github.com/beauraines/toggl-cli/commits?author=benthayer" title="Code">💻</a></td>
|
|
91
|
+
<td align="center" valign="top" width="14.28%"><a href="http://yieldthedog.github.com/"><img src="https://avatars.githubusercontent.com/u/123820?v=4?s=100" width="100px;" alt="Christoph Walcher"/><br /><sub><b>Christoph Walcher</b></sub></a><br /><a href="#tool-saintedlama" title="Tools">🔧</a> <a href="#projectManagement-saintedlama" title="Project Management">📆</a></td>
|
|
92
|
+
</tr>
|
|
93
|
+
</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
|
|
96
|
+
<!-- markdownlint-restore -->
|
|
97
|
+
<!-- prettier-ignore-end -->
|
|
98
|
+
|
|
99
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
100
|
+
|
|
101
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
102
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import js from "@eslint/js";
|
|
5
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
const compat = new FlatCompat({
|
|
10
|
+
baseDirectory: __dirname,
|
|
11
|
+
recommendedConfig: js.configs.recommended,
|
|
12
|
+
allConfig: js.configs.all
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export default [...compat.extends("eslint:recommended"), {
|
|
16
|
+
languageOptions: {
|
|
17
|
+
globals: {
|
|
18
|
+
...globals.browser,
|
|
19
|
+
...globals.node,
|
|
20
|
+
...globals.es2021
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
ecmaVersion: "latest",
|
|
24
|
+
sourceType: "module",
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
rules: {
|
|
28
|
+
"no-unused-expressions": "warn",
|
|
29
|
+
},
|
|
30
|
+
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beauraines/toggl-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "CLI client for Toggl Time Tracker",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
"yargs": "^17.6.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint
|
|
45
|
-
"eslint
|
|
46
|
-
"eslint-plugin-jest": "^
|
|
47
|
-
"
|
|
48
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
43
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
44
|
+
"@eslint/js": "^9.5.0",
|
|
45
|
+
"eslint": "^9.5.0",
|
|
46
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
47
|
+
"globals": "^15.6.0",
|
|
49
48
|
"jest": "^29.4.3",
|
|
50
|
-
"should-release": "
|
|
49
|
+
"should-release": "github:beauraines/should-release",
|
|
51
50
|
"standard-version": "^9.5.0"
|
|
52
51
|
}
|
|
53
52
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true,
|
|
5
|
-
"node": true
|
|
6
|
-
},
|
|
7
|
-
"extends": "eslint:recommended",
|
|
8
|
-
"overrides": [
|
|
9
|
-
],
|
|
10
|
-
"parserOptions": {
|
|
11
|
-
"ecmaVersion": "latest",
|
|
12
|
-
"sourceType": "module"
|
|
13
|
-
},
|
|
14
|
-
"rules": {
|
|
15
|
-
"no-unused-expressions": "warn"
|
|
16
|
-
}
|
|
17
|
-
}
|