clockify-cli icon indicating copy to clipboard operation
clockify-cli copied to clipboard

Use this CLI with Tinderbox

Open satikusala opened this issue 2 years ago • 5 comments

Hey there, let me start with I'm not a programmer but I'm learning to figure out my way around the CL.

I use an app called It is a note taking app that can pass attribute values to apps, like pandoc, via the command line. I'm wonderifn if there is a way that I could use its run command to pass value to this CLI. Would anyone have an idea on how I might go about this?

satikusala avatar Jan 22 '23 16:01 satikusala

Thanks for properly labeling my question. I've got clockify installed and can trigger it from the terminal. So far so good. My next question." I'm getting really close to doing what I want to accomplish. Can someone give me an example of how I can submit a manual entry? I tried:

"clockify-cli manual 609d62c93bf606403d2154221 --when 15:04 --when-to-close 15:24 this is a test"

satikusala avatar Jan 24 '23 18:01 satikusala

hi @satikusala

there are two ways to call clockify-cli manual to create a time entry.

the first is using the command "arguments":

clockify-cli manual personal 15:04 15:24 "this is a test description"

when you call a command from a terminal each text separated by a space will be a argument, to pass a argument with a space on it, you need to put it between " like "with space" to work.

in the example above personal is the project (should be the id), 15:04 is the start time, 15:24 is the end time and "this is a test description" is the description.

the second is using "options", to create the same time entry would be:

clockify-cli manual --project personal --when 15:04 --when-to-close 15:24 --description "this is a test description"

using options is a little clearer I think, the "argument" way is the "legacy" way.

you can see all the options here: https://clockify-cli.netlify.app/en/commands/clockify-cli_manual/#options

most of then are to change how the output is shown, but i think maybe --tag and --task may be useful to you.

i can't help much with the testing of "Tinderbox" because I can't install it.

lucassabreu avatar Jan 24 '23 18:01 lucassabreu

Sweet! Thanks. I got it working. Working perfectly. I'll be doing a demo this weekend. I'll post a video for you to see. Wondeful stuff, thanks. :)

satikusala avatar Jan 25 '23 00:01 satikusala

One more questions, sorry. I'm have trouble getting the not billable flag to work. I have "/opt/homebrew/bin/clockify-cli manual 'MME 2023 Update' -s '2023-01-24 16:29:15' -e '2023-01-24 17:30:00' -d 'Asdfasdfasdfasdf' -n --task 'Chapter 3' " and it works great." I've also inserted --not-billable for the -n. Any idea what might be wrong?

satikusala avatar Jan 25 '23 00:01 satikusala

I think I figure it out. The not billable flag is ignored if the tasks or project has "billable" set in the settings. Got it. This is so awesome. Video coming soon. :) Or did I get it wrong and the flag is not working?

satikusala avatar Jan 25 '23 00:01 satikusala