@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 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
- ### [2.3.16](https://github.com/beauraines/toggl-cli/compare/v2.3.15...v2.3.16) (2024-09-08)
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
 
@@ -7,6 +7,12 @@ export const builder = {}
7
7
 
8
8
  export const handler = async function (argv) {
9
9
  const client = await Client()
10
- const deleted = await client.timeEntries.delete(argv.id)
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
+ }
@@ -5,7 +5,8 @@ export const command = 'start'
5
5
  export const desc = 'Starts a time entry'
6
6
 
7
7
  export const builder = {
8
- description: {
8
+ d: {
9
+ alias: ['description'],
9
10
  describe: 'Time entry name',
10
11
  type: 'string:'
11
12
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/toggl-cli",
3
- "version": "2.3.16",
3
+ "version": "2.4.0",
4
4
  "description": "CLI client for Toggl Time Tracker",
5
5
  "main": "cli.js",
6
6
  "bin": {