@beauraines/toggl-cli 0.10.9 → 0.10.10
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 +7 -0
- package/cmds/edit.mjs +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
### [0.10.10](https://github.com/beauraines/toggl-cli/compare/v0.10.9...v0.10.10) (2023-03-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* edit command is throwing an error ([#50](https://github.com/beauraines/toggl-cli/issues/50)) ([794feab](https://github.com/beauraines/toggl-cli/commit/794feab35dae4eb8b79ec4ae1749024bb4f05c72)), closes [#49](https://github.com/beauraines/toggl-cli/issues/49)
|
|
11
|
+
|
|
5
12
|
### [0.10.9](https://github.com/beauraines/toggl-cli/compare/v0.10.7...v0.10.9) (2023-03-13)
|
|
6
13
|
|
|
7
14
|
|
package/cmds/edit.mjs
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
/* eslint-disable no-unused-expressions */
|
|
1
2
|
import Client from '../client.js'
|
|
2
3
|
import { defaultWorkspaceId, getProjectByName, getProjectById, appName, displayTimeEntry } from '../utils.js'
|
|
3
4
|
import dayjs from 'dayjs'
|
|
5
|
+
import debugClient from 'debug'
|
|
4
6
|
import utc from 'dayjs/plugin/utc.js'
|
|
5
7
|
import timezone from 'dayjs/plugin/timezone.js'
|
|
6
8
|
import yargs from 'yargs'
|
|
7
9
|
dayjs.extend(utc)
|
|
8
10
|
dayjs.extend(timezone)
|
|
9
11
|
|
|
12
|
+
const debug = debugClient('rtm-cli-edit');
|
|
13
|
+
|
|
10
14
|
export const command = 'edit'
|
|
11
15
|
// FIXME editing not working
|
|
12
|
-
export const desc =
|
|
13
|
-
`and the time must be parsable by dayjs, e.g. 4:50PM or '12:00 AM'.`
|
|
16
|
+
export const desc = 'Edits the current running time entry. Only updating the time is supported and the time must be parsable by dayjs, e.g. 4:50PM or \'12:00 AM\'.'
|
|
14
17
|
|
|
15
18
|
export const builder = {
|
|
16
19
|
d: { alias: ['description'], describe: 'Time entry name', type: 'string:' },
|