Date and time of start of tracked activity [required]
-t, --to DATE
Date and time of end of tracked activity [required]
-c, --confirm-new-project
Confirm addition of new project.
-b, --confirm-new-tag
Confirm creation of new tag.
--help
Show this message and exit.
aggregate
Usage: watson aggregate [OPTIONS]
Display a report of the time spent on each project aggregated by day.
If a project is given, the time spent on this project is printed. Else, print the total for each root project.
By default, the time spent the last 7 days is printed. This timespan can be controlled with the --from and --to arguments. The dates must have the format YEAR-MONTH-DAY, like: 2014-05-19.
You can limit the report to a project or a tag using the --project and --tag options. They can be specified several times each to add multiple projects or tags to the report.
If you are outputting to the terminal, you can selectively enable a pager through the --pager option.
You can change the output format from plain text to JSON using the --json option or to CSV using the --csv option. Only one of these two options can be used at once.
You can specify the frame to edit by its position or by its frame id. For example, to edit the second-to-last frame, pass -2 as the frame index. You can get the id of a frame with the watson log command.
If no id or index is given, the frame defaults to the current frame or the last recorded frame, if no project is currently running.
The editor used is determined by the VISUAL or EDITOR environment variables (in that order) and defaults to notepad on Windows systems and to vim, nano or vi (first one found) on all other systems.
Options
Flag
Help
-c, --confirm-new-project
Confirm addition of new project.
-b, --confirm-new-tag
Confirm creation of new tag.
--help
Show this message and exit.
frames
Usage: watson frames [OPTIONS]
Display the list of all frame IDs.
Example:
$ watson frames
f1c4815
9d1a989
8801ec3
[...]
Options
Flag
Help
--help
Show this message and exit.
help
Usage: watson help [OPTIONS] [COMMAND]
Display help information
Options
Flag
Help
--help
Show this message and exit.
log
Usage: watson log [OPTIONS]
Display each recorded session during the given timespan.
By default, the sessions from the last 7 days are printed. This timespan can be controlled with the --from and --to arguments. The dates must have the format YEAR-MONTH-DAY, like: 2014-05-19.
You can also use special shortcut options for easier timespan control: --day sets the log timespan to the current day (beginning at 00:00h) and --year, --month and --week to the current year, month or week respectively. The shortcut --luna sets the timespan to the current moon cycle with the last full moon marking the start of the cycle.
If you are outputting to the terminal, you can selectively enable a pager through the --pager option.
You can limit the log to a project or a tag using the --project and --tag options. They can be specified several times each to add multiple projects or tags to the log.
You can change the output format from plain text to JSON using the --json option or to CSV using the --csv option. Only one of these two options can be used at once.
Perform a merge of the existing frames with a conflicting frames file.
When storing the frames on a file hosting service, there is the possibility that the frame file goes out-of-sync due to one or more of the connected clients going offline. This can cause the frames to diverge.
If the --force command is specified, the merge operation will automatically be performed.
The only argument is a path to the the conflicting frames file.
Merge will output statistics about the merge operation.
Example:
$ watson merge frames-with-conflicts
120 frames will be left unchanged
12 frames will be merged
3 frame conflicts need to be resolved
To perform a merge operation, the user will be prompted to select the frame they would like to keep.
Example:
$ watson merge frames-with-conflicts --force
120 frames will be left unchanged
12 frames will be merged
3 frame conflicts need to be resolved
Will resolve conflicts:
frame 8804872:
< {
< "project": "tailordev",
< "start": "2015-07-28 09:33:33",
< "stop": "2015-07-28 10:39:36",
< "tags": [
< "intern",
< "daily-meeting"
< ]
< }
---
> {
> "project": "tailordev",
> "start": "2015-07-28 09:33:33",
> "stop": "**2015-07-28 11:39:36**",
> "tags": [
> "intern",
> "daily-meeting"
> ]
> }
Select the frame you want to keep: left or right? (L/r)
Options
Flag
Help
-f, --force
If specified, then the merge will automatically be performed.
Remove a frame. You can specify the frame either by id or by position (ex: -1 for the last frame).
Options
Flag
Help
-f, --force
Don’t ask for confirmation.
--help
Show this message and exit.
rename
Usage: watson rename [OPTIONS] TYPE OLD_NAME NEW_NAME
Rename a project or tag.
Example:
$ watson rename project read-python-intro learn-python
Renamed project "read-python-intro" to "learn-python"
$ watson rename tag company-meeting meeting
Renamed tag "company-meeting" to "meeting"
Options
Flag
Help
--help
Show this message and exit.
report
Usage: watson report [OPTIONS]
Display a report of the time spent on each project.
If a project is given, the time spent on this project is printed. Else, print the total for each root project.
By default, the time spent the last 7 days is printed. This timespan can be controlled with the --from and --to arguments. The dates must have the format YEAR-MONTH-DAY, like: 2014-05-19.
You can also use special shortcut options for easier timespan control: --day sets the report timespan to the current day (beginning at 00:00h) and --year, --month and --week to the current year, month or week respectively. The shortcut --luna sets the timespan to the current moon cycle with the last full moon marking the start of the cycle.
You can limit the report to a project or a tag using the --project, --tag, --ignore-project and --ignore-tag options. They can be specified several times each to add or ignore multiple projects or tags to the report.
If you are outputting to the terminal, you can selectively enable a pager through the --pager option.
You can change the output format for the report from plain text to JSON using the --json option or to CSV using the --csv option. Only one of these two options can be used at once.
(Don’t) include currently running frame in report.
-f, --from DATE
The date from when the report should start. Defaults to seven days ago.
-t, --to DATE
The date at which the report should stop (inclusive). Defaults to tomorrow.
-y, --year
Reports activity for the current year.
-m, --month
Reports activity for the current month.
-l, --luna
Reports activity for the current moon cycle.
-w, --week
Reports activity for the current week.
-d, --day
Reports activity for the current day.
-a, --all
Reports all activities.
-p, --project TEXT
Reports activity only for the given project. You can add other projects by using this option several times.
-T, --tag TEXT
Reports activity only for frames containing the given tag. You can add several tags by using this option multiple times
--ignore-project TEXT
Reports activity for all projects but the given ones. You can ignore several projects by using the option multiple times. Any given project will be ignored
--ignore-tag TEXT
Reports activity for all tags but the given ones. You can ignore several tags by using the option multiple times. Any given tag will be ignored
-j, --json
Format output in JSON instead of plain text
-s, --csv
Format output in CSV instead of plain text
-g, --pager / -G, --no-pager
(Don’t) view output through a pager.
--help
Show this message and exit.
restart
Usage: watson restart [OPTIONS] [FRAME]
Restart monitoring time for a previously stopped project.
By default, the project from the last frame, which was recorded, is restarted, using the same tags as recorded in that frame. You can specify the frame to use with an integer frame index argument or a frame ID. For example, to restart the second-to-last frame, pass -2 as the frame index.
Normally, if a project is currently started, watson will print an error and do nothing. If you set the configuration option options.stop_on_restart to a true value (1, on, true or yes), the current project, if any, will be stopped before the new frame is started. You can pass the option -s or --stop resp. -S or --no-stop to override the default or configured behaviour.
If no previous frame exists or an invalid frame index or ID was given, an error is printed and no further action taken.
Example:
$ watson start apollo11 +module +brakes
Starting project apollo11 [module, brakes] at 16:34
$ watson stop
Stopping project apollo11, started a minute ago. (id: e7ccd52)
$ watson restart
Starting project apollo11 [module, brakes] at 16:36
Options
Flag
Help
-s, --stop / -S, --no-stop
(Don’t) Stop an already running project.
--help
Show this message and exit.
start
Usage: watson start [OPTIONS] [ARGS]...
Start monitoring time for the given project. You can add tags indicating more specifically what you are working on with +tag.
If there is already a running project and the configuration option options.stop_on_start is set to a true value (1, on, true or yes), it is stopped before the new project is started.
If the ‘–no-gap’ flag is given, the start time of the new project is set to the stop time of the most recently stopped project.
(Don’t) leave gap between end time of previous project and start time of the current.
-c, --confirm-new-project
Confirm addition of new project.
-b, --confirm-new-tag
Confirm creation of new tag.
--help
Show this message and exit.
status
Usage: watson status [OPTIONS]
Display when the current project was started and the time spent since.
You can configure how the date and time of when the project was started are displayed by setting options.date_format and options.time_format in the configuration. The syntax of these formatting strings and the supported placeholders are the same as for the strftime method of Python’s datetime.datetime class.
Example:
$ watson status
Project apollo11 [brakes] started seconds ago (2014-05-19 14:32:41+0100)
$ watson config options.date_format %d.%m.%Y
$ watson config options.time_format "at %I:%M %p"
$ watson status
Project apollo11 [brakes] started a minute ago (19.05.2014 at 02:32 PM)
Options
Flag
Help
-p, --project
only output project
-t, --tags
only show tags
-e, --elapsed
only show time elapsed
--help
Show this message and exit.
stop
Usage: watson stop [OPTIONS]
Stop monitoring time for the current project.
If ‘–at’ option is given, the provided stopping time is used. The specified time must be after the begin of the to be ended frame and must not be in the future.
Example:
$ watson stop --at 13:37
Stopping project apollo11, started an hour ago and stopped 30 minutes ago. (id: e9ccd52) # noqa: E501
Options
Flag
Help
--at TIME
Stop frame at this time. Must be in (YYYY-MM-DDT)?HH:MM(:SS)? format.
--help
Show this message and exit.
sync
Usage: watson sync [OPTIONS]
Get the frames from the server and push the new ones.
The URL of the server and the User Token must be defined via the watson config command.
Example:
$ watson config backend.url http://localhost:4242
$ watson config backend.token 7e329263e329
$ watson sync
Received 42 frames from the server
Pushed 23 frames to the server
Toggle navigation Watson
Home
User Guide
Contributing
FAQ
About
Search
Previous
Next
Edit on GitHub
Commands
add
aggregate
cancel
config
edit
frames
help
log
merge
projects
remove
rename
report
restart
start
status
stop
sync
tags
Commands
add
Add time for project with tag(s) that was not tracked live.
Example:
Options
-f, --from DATE
-t, --to DATE
-c, --confirm-new-project
-b, --confirm-new-tag
--help
aggregate
Display a report of the time spent on each project aggregated by day.
If a project is given, the time spent on this project is printed. Else, print the total for each root project.
By default, the time spent the last 7 days is printed. This timespan can be controlled with the
--from
and--to
arguments. The dates must have the formatYEAR-MONTH-DAY
, like:2014-05-19
.You can limit the report to a project or a tag using the
--project
and--tag
options. They can be specified several times each to add multiple projects or tags to the report.If you are outputting to the terminal, you can selectively enable a pager through the
--pager
option.You can change the output format from plain text to JSON using the
--json
option or to CSV using the--csv
option. Only one of these two options can be used at once.Example:
Options
-c, --current / -C, --no-current
-f, --from DATE
-t, --to DATE
-p, --project TEXT
-T, --tag TEXT
-j, --json
-s, --csv
-g, --pager / -G, --no-pager
--help
cancel
Cancel the last call to the start command. The time will not be recorded.
Options
--help
config
Get and set configuration options.
If value is not provided, the content of the key is displayed. Else, the given value is set.
You can edit the config file with an editor with the
--edit
option.Example:
Options
-e, --edit
--help
edit
Edit a frame.
You can specify the frame to edit by its position or by its frame id. For example, to edit the second-to-last frame, pass
-2
as the frame index. You can get the id of a frame with thewatson log
command.If no id or index is given, the frame defaults to the current frame or the last recorded frame, if no project is currently running.
The editor used is determined by the
VISUAL
orEDITOR
environment variables (in that order) and defaults tonotepad
on Windows systems and tovim
,nano
orvi
(first one found) on all other systems.Options
-c, --confirm-new-project
-b, --confirm-new-tag
--help
frames
Display the list of all frame IDs.
Example:
Options
--help
help
Display help information
Options
--help
log
Display each recorded session during the given timespan.
By default, the sessions from the last 7 days are printed. This timespan can be controlled with the
--from
and--to
arguments. The dates must have the formatYEAR-MONTH-DAY
, like:2014-05-19
.You can also use special shortcut options for easier timespan control:
--day
sets the log timespan to the current day (beginning at 00:00h) and--year
,--month
and--week
to the current year, month or week respectively. The shortcut--luna
sets the timespan to the current moon cycle with the last full moon marking the start of the cycle.If you are outputting to the terminal, you can selectively enable a pager through the
--pager
option.You can limit the log to a project or a tag using the
--project
and--tag
options. They can be specified several times each to add multiple projects or tags to the log.You can change the output format from plain text to JSON using the
--json
option or to CSV using the--csv
option. Only one of these two options can be used at once.Example:
Options
-c, --current / -C, --no-current
-f, --from DATE
-t, --to DATE
-y, --year
-m, --month
-l, --luna
-w, --week
-d, --day
-a, --all
-p, --project TEXT
-T, --tag TEXT
-j, --json
-s, --csv
-g, --pager / -G, --no-pager
--help
merge
Perform a merge of the existing frames with a conflicting frames file.
When storing the frames on a file hosting service, there is the possibility that the frame file goes out-of-sync due to one or more of the connected clients going offline. This can cause the frames to diverge.
If the
--force
command is specified, the merge operation will automatically be performed.The only argument is a path to the the conflicting
frames
file.Merge will output statistics about the merge operation.
Example:
To perform a merge operation, the user will be prompted to select the frame they would like to keep.
Example:
Options
-f, --force
--help
projects
Display the list of all the existing projects.
Example:
Options
--help
remove
Remove a frame. You can specify the frame either by id or by position (ex:
-1
for the last frame).Options
-f, --force
--help
rename
Rename a project or tag.
Example:
Options
--help
report
Display a report of the time spent on each project.
If a project is given, the time spent on this project is printed. Else, print the total for each root project.
By default, the time spent the last 7 days is printed. This timespan can be controlled with the
--from
and--to
arguments. The dates must have the formatYEAR-MONTH-DAY
, like:2014-05-19
.You can also use special shortcut options for easier timespan control:
--day
sets the report timespan to the current day (beginning at 00:00h) and--year
,--month
and--week
to the current year, month or week respectively. The shortcut--luna
sets the timespan to the current moon cycle with the last full moon marking the start of the cycle.You can limit the report to a project or a tag using the
--project
,--tag
,--ignore-project
and--ignore-tag
options. They can be specified several times each to add or ignore multiple projects or tags to the report.If you are outputting to the terminal, you can selectively enable a pager through the
--pager
option.You can change the output format for the report from plain text to JSON using the
--json
option or to CSV using the--csv
option. Only one of these two options can be used at once.Example:
Options
-c, --current / -C, --no-current
-f, --from DATE
-t, --to DATE
-y, --year
-m, --month
-l, --luna
-w, --week
-d, --day
-a, --all
-p, --project TEXT
-T, --tag TEXT
--ignore-project TEXT
--ignore-tag TEXT
-j, --json
-s, --csv
-g, --pager / -G, --no-pager
--help
restart
Restart monitoring time for a previously stopped project.
By default, the project from the last frame, which was recorded, is restarted, using the same tags as recorded in that frame. You can specify the frame to use with an integer frame index argument or a frame ID. For example, to restart the second-to-last frame, pass
-2
as the frame index.Normally, if a project is currently started, watson will print an error and do nothing. If you set the configuration option
options.stop_on_restart
to a true value (1
,on
,true
oryes
), the current project, if any, will be stopped before the new frame is started. You can pass the option-s
or--stop
resp.-S
or--no-stop
to override the default or configured behaviour.If no previous frame exists or an invalid frame index or ID was given, an error is printed and no further action taken.
Example:
Options
-s, --stop / -S, --no-stop
--help
start
Start monitoring time for the given project. You can add tags indicating more specifically what you are working on with
+tag
.If there is already a running project and the configuration option
options.stop_on_start
is set to a true value (1
,on
,true
oryes
), it is stopped before the new project is started.If the ‘–no-gap’ flag is given, the start time of the new project is set to the stop time of the most recently stopped project.
Example:
Options
-g, --gap / -G, --no-gap
-c, --confirm-new-project
-b, --confirm-new-tag
--help
status
Display when the current project was started and the time spent since.
You can configure how the date and time of when the project was started are displayed by setting
options.date_format
andoptions.time_format
in the configuration. The syntax of these formatting strings and the supported placeholders are the same as for thestrftime
method of Python’sdatetime.datetime
class.Example:
Options
-p, --project
-t, --tags
-e, --elapsed
--help
stop
Stop monitoring time for the current project.
If ‘–at’ option is given, the provided stopping time is used. The specified time must be after the begin of the to be ended frame and must not be in the future.
Example:
Options
--at TIME
--help
sync
Get the frames from the server and push the new ones.
The URL of the server and the User Token must be defined via the
watson config
command.Example:
Options
--help
tags
Display the list of all the tags.
Example:
Options
--help
Watson, by TailorDev & al. is released under the MIT License.
Documentation built with MkDocs.
×Close
Search
From here you can search these documents. Enter your search terms below.
×Close
Keyboard Shortcuts
http://tailordev.github.io/Watson/user-guide/commands/