@beauraines/toggl-cli 2.3.16 → 2.4.0
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/CHANGELOG.md +12 -1
- package/cmds/removeTimeEntry.mjs +8 -2
- package/cmds/startTimeEntry.mjs +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
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
|
-
|
|
5
|
+
## [2.4.0](https://github.com/beauraines/toggl-cli/compare/v2.3.15...v2.4.0) (2024-09-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* error handling when removing non-existent time entry ([#196](https://github.com/beauraines/toggl-cli/issues/196)) ([5506de2](https://github.com/beauraines/toggl-cli/commit/5506de202d208690aa03bcaed4f8c36686aa28be)), closes [#195](https://github.com/beauraines/toggl-cli/issues/195)
|
|
11
|
+
* short alias for description on start command ([#197](https://github.com/beauraines/toggl-cli/issues/197)) ([c01bf27](https://github.com/beauraines/toggl-cli/commit/c01bf2725f58cf6dabb4b913e72e05e0d4bbe72a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **deps:** bump debug from 4.3.6 to 4.3.7 ([#192](https://github.com/beauraines/toggl-cli/issues/192)) ([2aa2cb8](https://github.com/beauraines/toggl-cli/commit/2aa2cb880bc1ca332d5c4ef60c0cfaa44e5c85c8))
|
|
6
17
|
|
|
7
18
|
### [2.3.15](https://github.com/beauraines/toggl-cli/compare/v2.3.14...v2.3.15) (2024-09-05)
|
|
8
19
|
|
package/cmds/removeTimeEntry.mjs
CHANGED
|
@@ -7,6 +7,12 @@ export const builder = {}
|
|
|
7
7
|
|
|
8
8
|
export const handler = async function (argv) {
|
|
9
9
|
const client = await Client()
|
|
10
|
-
|
|
10
|
+
let deleted
|
|
11
|
+
try {
|
|
12
|
+
deleted = await client.timeEntries.delete(argv.id)
|
|
13
|
+
} catch (error) {
|
|
14
|
+
console.error(error.message)
|
|
15
|
+
process.exit(1)
|
|
16
|
+
}
|
|
11
17
|
console.log(`Deleted time entry with id #${argv.id}`)
|
|
12
|
-
}
|
|
18
|
+
}
|
package/cmds/startTimeEntry.mjs
CHANGED