Skip to content

Unable to set a duration in XXmYYs format #19

@pixelastic

Description

@pixelastic

Hello,

The README mentions that one could set a custom duration in the XXmYYs format, but this doesn't seem to be implemented.

$ pomodoro start --duration 22m30s
Error: invalid argument "22m30s" for "-d, --duration" flag: strconv.ParseInt: parsing "22m30s": invalid syntax

I was looking for this feature to be able to implement my own "pause/resume" mechanism, where I would save the remaining time in a /tmp/ file before finishing a session, and resuming on the same duration when starting it over. This helps me for micro-interruption (a coworker asking a question that takes less than 30s to answer, and not breaking the flow too much).

But currently it seems that I cannot start a session with a finer granularity than minutes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions