humaans-cli
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

humaans-cli

A simple CLI for humaans.io, put together to provide easier access to time tracking features and reporting right from the command line.

Not affiliated with Humaans. Built for internal needs.

Why

Humaans is missing a few crucial features:

  • No desktop app, lackluster Slack app
  • No easy access to total time clocked today
  • No sum of hours clocked in a period

Usage

$ npm install -g humaans-cli
$ humaans COMMAND
running command...
$ humaans (--version)
humaans-cli/0.1.5 darwin-arm64 node-v20.10.0
$ humaans --help [COMMAND]
USAGE
  $ humaans COMMAND
...

Development

$ yarn install
$ yarn prepack
$ ./bin/dev.js help 

Run yarn prepack every time you make changes.

Commands

humaans clock in [TIME]

Clock in

USAGE
  $ humaans clock in [TIME]

ARGUMENTS
  TIME  Time at which to clock in

DESCRIPTION
  Clock in

EXAMPLES
  Clock in now:

    $ humaans clock in

  Clock in at the given hour:

    $ humaans clock in 9:00

See code: src/commands/clock/in.ts

humaans clock out [TIME]

Clock out

USAGE
  $ humaans clock out [TIME]

ARGUMENTS
  TIME  Time at which to clock out

DESCRIPTION
  Clock out

EXAMPLES
  Clock out now:

    $ humaans clock out

  Clock out at the given hour:

    $ humaans clock out 17:00

See code: src/commands/clock/out.ts

humaans help [COMMANDS]

Display help for humaans.

USAGE
  $ humaans help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for humaans.

See code: @oclif/plugin-help

humaans login

Login to Humaans.

USAGE
  $ humaans login

DESCRIPTION
  Login to Humaans.

EXAMPLES
  $ humaans login

See code: src/commands/login.ts

humaans report [START] [END]

Generate an hour report.

USAGE
  $ humaans report [START] [END]

ARGUMENTS
  START  Start date
  END    End date

DESCRIPTION
  Generate an hour report.

EXAMPLES
  Calculate report from the first day to the last day of the current month:

    $ humaans report

  Calculate report for today:

    $ humaans report today

  Calculate report from the given day to the last day of the current month:

    $ humaans report 2023-03-01

  Calculate report for the given period:

    $ humaans report 2023-03-10 2023-04-10

See code: src/commands/report.ts

Dependencies (7)

Dev Dependencies (16)

Package Sidebar

Install

npm i humaans-cli

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

30.7 kB

Total Files

23

Last publish

Collaborators

  • zefj