Skip to content

demian85/chrono-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrono-cli

Note: This utility is for Altoros internal use only

This command line utility allows you to view and fill your weekly timesheet.

How it works

The script runs a Chromium instance in headless mode and simulates a user interacting with the web page.

During the first run, it will ask for credentials and store the session data in the browser. Subsequent runs will use the same session (if profile is not deleted). Profile is stored in ./profile

After the initial load, it parses your projects/tasks and shows a table with the current weekly hours.

If less than 8 hours have been entered for the current day, it keeps prompting the user for a specific task and hours.

At the end, the user can save or send the sheet for approve.

Ctrl+C/Cmd+C cancels the current operation.

Requirements

  • Node.js v10.x

Installation

  • Clone repo
  • cd chrono-cli
  • npm i && npm link

Usage

Run chrono-cli and follow the instructions.

Contributing

File an issue :)