Comments (8)
I agree that its not immediately clear - I did something similar when I first used it, however as you suggest it was solved after I a) did it wrong the first time and then b) read --help
.
I think that having the command support duration and/or time as it currently stands is the way to go rather than have another full set of commands.
Showing an example is possibly a good idea, but it likely wouldn't change the learning curve of a) do it wrong then b) read the docs...
from toggl-cli.
Hi Stafford.
Here I can see couple of things which can be used:
- It already uses : and @ prefixes, so what about + prefix? I understand that it is just changing one with another, but it still will look easier to read and understand than current notation: 'd'DURATION. And format would look really nice
toggl-cli add TASK @toggl-cli +25:00
. - Look how
man date
has the same complexity issues, but they are giving really nice tips there, like "output date and time in RFC 2822 format. Example: Mon, 07 Aug 2006 12:34:56 -0600" so you can just copy paste line and adjust. Or look intoman find
, they wrote "see section STANDARDS CONFORMANCE below" so it's normal to point user to different direction.
And yes, I agree about learning curve you said, but still for me this notation 'd'DURATION at first place is 'd'00:25:00 rather complex. After lot failed attempts I understand what format you are requesting here: char 'd' as prefix for time format.
from toggl-cli.
I'm not a big fan of how 'd'DURATION reads and I think your +DURATION suggestion definitely improves it. If a switch were to occur, the 'd' prefix could be left in (silently) to support backwards compatibility if required.
If examples were to be included, I would be a supporter of having them at the end --help, rather than per command. The current command listing seems concise and quickly communicated as it stands - I think adding examples at the line level would be detrimental to that, but others may disagree.
Another option would be to catch incorrect +DURATION when entered and echo the expected format.
from toggl-cli.
I think I can improve those, if you want (can make a pull request with changes)?
from toggl-cli.
from toggl-cli.
Guys, what the hell is the format to use this? I've looked and have no idea what this means:
DURATION = [[Hours:]Minutes:]Seconds
I've tried everything and even looked at the function calls..
from toggl-cli.
Square brackets mean optional. If you just enter a number, it will be
considered as "seconds". If you enter "13:14" it will be 13 minutes, 14
seconds. If you enter 13:14:15, it means 13 hours, 14 minutes, 15 seconds.
On Thu, Apr 7, 2016 at 2:53 PM Devon Ash [email protected] wrote:
Guys, what the hell is the format to use this? I've looked and have no
idea what this means:DURATION = [[Hours:]Minutes:]Seconds
I've tried everything and even looked at the function calls..
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#57 (comment)Dr. Robert Adams
School of Computing and Information Systems
Grand Valley State University
from toggl-cli.
There is new duration format as part of the new version of Toggl CLI, see documentation.
from toggl-cli.
Related Issues (20)
- Rework CLI completion with new Click 8.0 release HOT 1
- Unable to find user for TimeEntry HOT 1
- Add `--colors=always` option for passing to `click` HOT 2
- Authentication fail on "ls" command -- but works for other commands
- How do I find entries without project? HOT 1
- Install completion to $ZDOTDIR/.zshrc HOT 4
- toggl projects add -n "asd asd" --color 123 HOT 3
- Flag to quickly do `toggl stop -p $TIME; toggl start -s $TIME ...` HOT 3
- API v8 is being deprecated and shut down by toggle HOT 12
- [Feature request] rewrite in javascript HOT 1
- Add `num-entries` option to `ls` HOT 3
- Print entry description on `toggl start`
- Feature Request: Summed Worklogs Grouped by Description HOT 5
- Python 3.12 Support HOT 3
- Add `TogglServerValidationException` for 400 code errors
- Toggl sessions
- Error: argument of type 'function' is not iterable HOT 2
- Mapping of TimeEntry's Project field is broken
- Incomplete Project Listing and Issues Adding Time Entries When There Are More Than 151 Projects
- Check for `.togglrc` file in default `XDG_CONFIG_HOME` if env variable is unset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toggl-cli.