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

[Session] Add --start and --end to create session #38

Closed
lcfd opened this issue Mar 7, 2024 · 0 comments · Fixed by #39
Closed

[Session] Add --start and --end to create session #38

lcfd opened this issue Mar 7, 2024 · 0 comments · Fixed by #39
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lcfd
Copy link
Owner

lcfd commented Mar 7, 2024

The trak create session command at the moment allow entering a time as starter and the hours/minutes that the session has lasted.

It would be a good idea to add new flags for a new workflow.

The start and end method.

This workflow allows more freedom for the user.
The user can provide datetime values as the start and end timings for the new session.

Why?

  • Times is uncomfortable for long sessions
  • Flexibility for external usage (in Neovim for example)

Proposal

trak create session --start [%Y-%m-%dT%H:%M] --end [%Y-%m-%dT%H:%M]

Notes

  • Those flags will be incompatible with --hours and --minutes
  • Probably the --when \ -w flag will be transformed in an alias to --start
    • No, --when is used in the ADD method, with --minutes and --hours.
@lcfd lcfd changed the title [Create Session] Add --start and --end [Session] Add --start and --end to create session Mar 7, 2024
@lcfd lcfd self-assigned this Mar 24, 2024
@lcfd lcfd added this to the v0.0.5 milestone Mar 24, 2024
@lcfd lcfd added the enhancement New feature or request label Mar 24, 2024
@lcfd lcfd linked a pull request Mar 24, 2024 that will close this issue
@lcfd lcfd closed this as completed in #39 Mar 24, 2024
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
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant