Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Zeit, erfassen. A command line tool for tracking time spent on activities.

License

NotificationsYou must be signed in to change notification settings

mrusme/zeit

Repository files navigation

zeit

Static Badge

Zeit, erfassen. A command line tool for tracking time spent on tasks & projects.

Get some more info on why I build thishere.

Download the latest version for macOS, Linux, FreeBSD, NetBSD, OpenBSD & Plan9here.

Build

make

Info: This will build using the version 0.0.0. You can prefix themakecommand withVERSION=x.y.z and setx,y andz accordingly if you wantthe version inzeit --help to be a different one.

Usage

zeit

Please make sure toexport ZEIT_DB=~/.config/zeit.db (or whatever locationyou would like to have the zeit database at).

zeit's data structure contains of the following key entities:project,task andentry. Anentry consists of aproject and atask. Thesedon't have to pre-exist and can be created on-the-fly inside a newentry usinge.g.zeit track --project "New Project" --task "New Task". In order toconfigure them, thezeit project and thezeit task commands can be utilised.

Projects

A project can be configured usingzeit project:

zeit project --help

Examples:

Set the project color to a hex color code, allowingzeit stats to displayinformation in that color (if your terminal supports colours):

zeit project --color'#d3d3d3'"cool project"

Task

A task can be configured usingzeit task:

zeit task --help

Examples:

Setting up a Git repository to have commit messages automatically importedinto the activity notes when an activity is finished:

zeit task --git~/my/git/repository"development"

Info: You will have to have thegit binary available in yourPATH forthis to work.zeit automatically limits the commit log to the exact time ofthe activity's beginning- and finish-time. Commit messages before or after thesetimes won't be imported.

Track activity

zeit track --help

Examples:

Begin tracking a new activity and reset the start time to 15 minutes ago:

zeit track --project project --task task --begin -0:15

Show current activity

zeit tracking

Finish tracking activity

zeit finish --help

Examples:

Finish tracking the currently tracked activity without adding any further info:

zeit finish

Finish tracking the currently tracked activity and change its task:

zeit finish --task other-task

Finish tracking the currently tracked activity and adjust its start time to4 PM:

zeit finish --begin 16:00

List tracked activity

zeit list --help

Examples:

List all tracked activities:

zeit list

List all tracked activities since a specific date/time:

zeit list --since"2020-10-14T00:00:01+01:00"

List all tracked activities and add the total hours:

zeit list --total

List only projects and tasks (relational):

zeit list --only-projects-and-tasks

List only projects and tasks (relational) that were tracked since a specificdate/time:

zeit list --only-projects-and-tasks --since"2020-10-14T00:00:01+01:00"

Display/update activity

zeit entry --help

Examples:

Display a tracked activity:

zeit entry 14037730-5c2d-44ff-b70e-81f1dcd4eb5f

Update a tracked activity:

zeit entry --finish"2020-09-02T18:16:00+01:00" 14037730-5c2d-44ff-b70e-81f1dcd4eb5f

Erase tracked activity

zeit erase --help

Examples:

Erase a tracked activity by its internal ID:

zeit erase 14037730-5c2d-44ff-b70e-81f1dcd4eb5f

Statistics

zeit stats

zeit stats

Import tracked activities

zeit import --help

The following formats are supported as of right now:

tyme: Tyme 3 JSON

It is possible to import JSON exports fromTyme 3.It is important that the JSON is exported with the following options set/unset:

Tyme 3 JSON export

  • Start/End can be set as required
  • Format has to beJSON
  • Export only unbilled entries can be set as required
  • Mark exported entries as billed can be set as required
  • Include non-billable tasks can be set as required
  • Filter Projects & Tasks can be set as required
  • Combine times by day & taskmust be unchecked

During import,zeit will create SHA1 sums for every Tyme 3 entry, whichallows it to identify every imported activity. This wayzeit won't import theexact same entry twice. Keep this in mind if you change entries in Tyme andthen import them again intozeit.

Examples:

Import a Tyme 3 JSON export:

zeit import --format tyme ./tyme.export.json

Export tracked activities

zeitexport --help

The following formats are supported as of right now:

zeit:zeit JSON

Thezeit internal JSON format. Basically a dump of the database includingonly tracked activities.

tyme: Tyme 3 JSON

It is possible to export JSON compatible to the Tyme 3 JSON format. Fields thatare not available inzeit will be filled with dummy values, e.g.Billing: "UNBILLED".

Examples:

Export a Tyme 3 JSON:

zeitexport --format tyme --project"my project" --since"2020-04-01T15:04:05+07:00" --until"2020-04-04T15:04:05+07:00"

Integrations

Here are a few integrations and extensions built by myself as well as otherpeople that make use ofzeit:


[8]ページ先頭

©2009-2025 Movatter.jp