Skip to content

CLI that interacts with Timeular's public API to track time-activities and generate xlsx/csv reports

Notifications You must be signed in to change notification settings

khaledosman/timeular-cli

Repository files navigation

JavaScript Style Guide codebeat badge Conventional Commits Commitizen friendly semantic-release Build Status Greenkeeper badge npm version PRs Welcome dependencies Status devDependencies Status npm

timeular-cli

CLI wrapper for Timeular's API to track activities and generate csv & xlsx reports! Can be used as an interactive cli by asking the user questions or directly by setting the required input via their corresponding flags

Installation

npm i -g timeular-cli

Update your .profile or .bashrc or .zshrc to include the following environment variables:

export TIMEULAR_API_KEY="XXXXXXXXXX"
export TIMEULAR_API_SECRET="YYYYYYYYYY"

You can get the values for these fields by visiting your Account page on Timeular

Usage

timeular --help

➜  github timeular --help
  _____   _                              _
 |_   _| (_)  _ __ ___     ___   _   _  | |   __ _   _ __
   | |   | | | '_ ` _ \   / _ \ | | | | | |  / _` | | '__|
   | |   | | | | | | | | |  __/ | |_| | | | | (_| | | |
   |_|   |_| |_| |_| |_|  \___|  \__,_| |_|  \__,_| |_|

Usage: timeular [options] [command]

Options:
  -v, --version         output the version number
  -h, --help            output usage information

Commands:
  track [activityName]  start tracking for a specific activity, stops current tracking before starting a new one
  report [options]      generates timeular report in csv or xlsx format
  stop                  stops tracking current activity

timeular track --help

timeular report --help

MacBook-Pro-3:github khaledosman$ timeular report --help
  _____   _                              _
 |_   _| (_)  _ __ ___     ___   _   _  | |   __ _   _ __
   | |   | | | '_ ` _ \   / _ \ | | | | | |  / _` | | '__|
   | |   | | | | | | | | |  __/ | |_| | | | | (_| | | |
   |_|   |_| |_| |_| |_|  \___|  \__,_| |_|  \__,_| |_|

Usage: report [options]

generates timeular report in csv or xlsx format

Options:
  -s, --startTime <startTime>  startTime
  -e, --endTime <endTIme>      endTime
  -f, --format <format>        xlsx or csv
  -h, --help                   output usage information

Track Activity

  • timeular track <activityName> or
  • timeular track

Generate A Report

  • timeular report -s <startTime> -e <endTime> -f <format> or
  • timeular report

About

CLI that interacts with Timeular's public API to track time-activities and generate xlsx/csv reports

Resources

Stars

Watchers

Forks

Packages

No packages published