punch

command module
v0.0.0-...-691d626 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

README

Punch

Punch card automation for my company

Usage

# build binary
make

# punch command
./punch \
    In|Out \
    --username=USERNAME \
    --password=PASSWORD \
    --company=COMPANY

Container

To build as a container, replace podman with docker if that's what you use.

make podman

To run the container, you might want to setup up a cron job

0 9 * * 1-5 podman run --rm <punch-image-name> /app/punch --username=<username> --password=<password> --company=<company>
0 17 * * 1-5 podman run --rm <punch-image-name> /app/punch --username=<username> --password=<password> --company=<company>

and manually set the cron time of your work, image name, username etc.

Wishlist

Things that I would like to further develop

  • Some reporting mechanism that it doesn't work, possibly by sending email? Currently there's a workaround print the output to a file in a crontab like COMMAND > file.txt.
  • Add CI to build container
  • Write test to check if punch in works
  • Make sure rod uses the right orientation and screen size

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL