@beauraines/toggl-cli 2.1.7 → 2.2.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 +14 -0
- package/cmds/index.mjs +2 -0
- package/cmds/removeTimeEntry.mjs +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.2.0](https://github.com/beauraines/toggl-cli/compare/v2.1.8...v2.2.0) (2024-05-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Remove time entry by id ([#160](https://github.com/beauraines/toggl-cli/issues/160)) ([de37a85](https://github.com/beauraines/toggl-cli/commit/de37a85f4ac134f8480c4efa9a8e47de9dca4cd2))
|
|
11
|
+
|
|
12
|
+
### [2.1.8](https://github.com/beauraines/toggl-cli/compare/v2.1.7...v2.1.8) (2024-05-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **deps:** bump dayjs from 1.11.10 to 1.11.11 ([#157](https://github.com/beauraines/toggl-cli/issues/157)) ([dbe0dde](https://github.com/beauraines/toggl-cli/commit/dbe0dde1874f38ae1e0d8d830bd4c3ac49feb3a9))
|
|
18
|
+
|
|
5
19
|
### [2.1.7](https://github.com/beauraines/toggl-cli/compare/v2.1.6...v2.1.7) (2024-04-14)
|
|
6
20
|
|
|
7
21
|
|
package/cmds/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import * as edit from './edit.mjs'
|
|
|
8
8
|
import * as web from './web.mjs'
|
|
9
9
|
import * as startTimeEntry from './startTimeEntry.mjs'
|
|
10
10
|
import * as stopTimeEntry from './stopTimeEntry.mjs'
|
|
11
|
+
import * as removeTimeEntry from './removeTimeEntry.mjs'
|
|
11
12
|
import * as today from './today.mjs'
|
|
12
13
|
import * as weekly from './weekly.mjs'
|
|
13
14
|
import * as createConfig from './create-config.mjs'
|
|
@@ -20,6 +21,7 @@ export const commands = [
|
|
|
20
21
|
projects,
|
|
21
22
|
startTimeEntry,
|
|
22
23
|
stopTimeEntry,
|
|
24
|
+
removeTimeEntry,
|
|
23
25
|
today,
|
|
24
26
|
web,
|
|
25
27
|
weekly,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Client from '../client.js'
|
|
2
|
+
import dayjs from 'dayjs'
|
|
3
|
+
|
|
4
|
+
export const command = 'rm <id>'
|
|
5
|
+
export const desc = 'Remove a time entry by id'
|
|
6
|
+
export const builder = {}
|
|
7
|
+
|
|
8
|
+
export const handler = async function (argv) {
|
|
9
|
+
const client = await Client()
|
|
10
|
+
const deleted = await client.timeEntries.delete(argv.id)
|
|
11
|
+
console.log(`Deleted time entry with id #${argv.id}`)
|
|
12
|
+
}
|