Option to set task?
IgorKrupenja opened this issue · comments
How can I set task when running toggl start
? toggl start --help
doe not seem to have this info
This should do it for you.
$ toggl start "my task"
Make sure you're running the latest version... This is my output for toggl start --help
There are also options to set the project and tags as well.
Usage: toggl start [OPTIONS] [DESCR]
Starts a new time entry with description DESCR (it can be left out). If
there is another currently running entry, the entry will be stopped and
new entry started.
Options:
-s, --start DATETIME Specifies start of the time entry. If left
empty 'now' is assumed.
-b, --billable Sets the Entry to be Billable (Premium only)
-a, --tags SET List of tags delimited with ','
-o, --project RESOURCE-TYPE Link the entry with specific project. Can be
ID or name of the project (ENV:
TOGGL_PROJECT)
-w, --workspace RESOURCE-TYPE Link the entry with specific workspace. Can
be ID or name of the workspace (ENV:
TOGGL_WORKSPACE)
--help Show this message and exit.
And if you just start a task without a description, you can use toggl now
to fix it.
$ toggl now --help
Usage: toggl now [OPTIONS]
Manages currently running entry.
Without any options the command fetches the current time entry and
displays it. But it also supports modification of the current time entry
through the options listed below.
Tags can be modified either in a way of specifing new set of tags
delimited with ',' character, or add/remove tags using +/- characters.
Examples: 'a,b,c,d' will remove all previous tags and add a,b,c,d tags.
'+z,-a' will remove tag 'a' and add tag 'z' to the already existing tag
list.
Options:
-d, --description TEXT Sets description
-s, --start DATETIME Sets starts time.
-a, --tags MODIFIER-TYPE Modifies the tags. List of values delimited
by ','.Support either modification or
specification mode. More info above.
-o, --project RESOURCE-TYPE Link the entry with specific project. Can be
ID or name of the project
-w, --workspace RESOURCE-TYPE Link the entry with specific workspace. Can
be ID or name of the workspace
--help Show this message and exit.
Thank you for your reply! Unfortunately, toggl start "something"
adds a description. To clarify myself, I was referring to the project tasks feature. These are available in paid plans.
Yeah, this seems like is not supported. I will create a patch for this.
Thank you for your reply! Unfortunately,
toggl start "something"
adds a description. To clarify myself, I was referring to the project tasks feature. These are available in paid plans.
@igor-krupenja Ah, got it. Sorry about that!