clocktopus 1.0.2 → 1.0.4
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/README.md +8 -8
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -216,18 +216,18 @@ For quick access, add to `~/.zshrc`:
|
|
|
216
216
|
```bash
|
|
217
217
|
CLOCKTOPUS_PATH="$HOME/Projects/Personal/clocktopus"
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
clockto() {
|
|
220
220
|
cd "$CLOCKTOPUS_PATH" || return
|
|
221
221
|
bun run "$@"
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
alias cbuild="
|
|
225
|
-
alias cstart="
|
|
226
|
-
alias cstop="
|
|
227
|
-
alias mstart="
|
|
228
|
-
alias mstop="
|
|
229
|
-
alias mrestart="
|
|
230
|
-
alias mlogs="
|
|
224
|
+
alias cbuild="clockto build"
|
|
225
|
+
alias cstart="clockto clock start"
|
|
226
|
+
alias cstop="clockto clock stop"
|
|
227
|
+
alias mstart="clockto monitor"
|
|
228
|
+
alias mstop="clockto monitor:stop"
|
|
229
|
+
alias mrestart="clockto monitor:restart"
|
|
230
|
+
alias mlogs="clockto monitor:logs"
|
|
231
231
|
```
|
|
232
232
|
|
|
233
233
|
---
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,8 @@ async function getWorkspaceAndUser() {
|
|
|
46
46
|
userId,
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
|
|
50
|
+
program.name('clocktopus').description('CLI time-tracking automation for Clockify').version(pkg.version);
|
|
50
51
|
program
|
|
51
52
|
.command('start')
|
|
52
53
|
.description('Start a new time entry. Select a project interactively.')
|