Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow punching time by command line argument #997

Open
soulflyman opened this issue Aug 24, 2023 · 0 comments
Open

Allow punching time by command line argument #997

soulflyman opened this issue Aug 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@soulflyman
Copy link

Describe the current limitation
It is not possible to punch time by calling time-to-leave from the command line with an argument.

Describe the proposed feature or enhancement
Allow punching time by calling time-to-leave.exe from the command line with an argument.

Additional context
It would be nice to have some command line arguments for the time-to-leave binary that let us punch time from the command line.
This can be used in scripts and automation like punching time on login or logout of a user.

Possible command line arguments could be:

  • --punch just punches the time like the big punch button
  • --come punches a time in the next free starting time slot of the actual day, if there is no slot it adds one
  • --leave punches a time in the next free ending time slot of the actual day, if there is no slot it adds one

Clarification of my used terms
Slots:
2023-08-24_11-27_2

Starting time Slot:
2023-08-24_11-27

Ending time slot:
2023-08-24_11-27_1

Adding a slot:
2023-08-24_11-27_3

@soulflyman soulflyman added the enhancement New feature or request label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant