Skip to content

DanielRamosAcosta/factorial-cli

Repository files navigation

factorial-cli

GitHub Workflow Status npm MIT License PRs Welcome

Fill your factorial shifts with ease

asciicast

Installation

# Setup env
export FACTORIAL_USER_EMAIL=your-email
export FACTORIAL_USER_PASSWORD=your-password

# Execute
npx factorial-cli fill-shifts --project ProjectName

Usage

Fills the shifts until today. If it's on the first days of the month, it will fill the previous month instead.
  factorial fill-shifts

USAGE:
    factorial fill-shifts [OPTIONS]
OPTIONS:
    -y, --year <YEAR>
            Sets the year to fill the shifts. Defaults to current year.

    -m, --month <MONTH>
            Sets the month to fill the shifts. Defaults to current month.

    -e, --email <EMAIL>
            The email of your factorial account. Also configurable via FACTORIAL_USER_EMAIL env variable.

    -p, --password <PASSWORD>
            The password of your factorial account. Also configurable via FACTORIAL_USER_PASSWORD env variable.

    -r, --randomness <RANDOMNESS>
            The amount of minutes to add or substract to the default entry and exit times.

    -o, --project <PROJECT>
            The project you want to set to fill shifts.

        --entryHour <ENTRY_HOUR>
            The default entry time you want to set to fill shifts. Default is 8am.

        --exitHour <EXIT_HOUR>
            The default exit time you want to set to fill shifts. Default is 8 hours after entry time.