ice8lue / clitt

Command line time tracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLITT

Command line time tracker

CLITT is a simple app to effortlessly track time ranges with one command only. It supports multiple projects and additional data fields.

Installation

Install via NPM: $ npm install -g clitt

or use yarn $ yarn global add clitt

Usage

$ clitt - that's it. Called for the first time, it will create a new track, called a second time, the track is finished.

Use $ clitt -p <PROJECT_NAME> to track for a specific project. While there can be only one open track for a given project, there may be multiple open tracks for multiple projects.

Project configurations and entries will be stored in ~/.clitt/<PROJECT_NAME>.json.

To define custom data fields, adjust the project config file:

{
  "title": "Sample project",
  "entries": [],
  "fields": [

    // Simple input prompt
    {
      "id": "task",
      "title": "Task description"
    },

    // Selection list prompt
    {
      "id": "category",
      "title": "Category",
      "values": [
        "Work",
        "Home",
        "Garden",
        "Car"
      ]
    }
  ]
}

Contributions

Found a bug? Missing a feature? I'm always happy about forks and PRs 😉

License

MIT - see LICENSE

About

Command line time tracker

License:MIT License


Languages

Language:TypeScript 89.0%Language:JavaScript 11.0%