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

cmd_duration: Introduce Variables #5832

Open
LionC opened this issue Mar 8, 2024 · 0 comments
Open

cmd_duration: Introduce Variables #5832

LionC opened this issue Mar 8, 2024 · 0 comments
Labels
✨ enhancement A new feature implementation.

Comments

@LionC
Copy link

LionC commented Mar 8, 2024

Feature Request

Is your feature request related to a problem? Please describe.

There are different possible preferences regarding the formatting of a duration, which are currently not supported:

  • Seconds with a decimal points
  • Raw seconds
  • Only the biggest one or two duration components
  • ....

Describe the solution you'd like

Other modules solve this by having variables that can be used in a format string. The cmd_duration module only offers a single pre-formatted variable though. I propose to introduce variables for the different possible components like:

  • Raw days / hours / minutes / seconds (with thousand separators)
  • "Modulo" days / hours / minutes / seconds including 0s
  • "Modulo" days / hours / minutes / seconds with 0s being empty strings

This would allow a lot of reasonable configs for different preferences.

Describe alternatives you've considered

I tried adding more single config options to support those cases, but it is hard to do that without being convoluted. Config could still be useful for setting things like thousand separators for the variables mentioned above.

I would be happy to implement this.

@LionC LionC added the ✨ enhancement A new feature implementation. label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement A new feature implementation.
Projects
None yet
Development

No branches or pull requests

1 participant