8000 Specify past or future datetime for frame start or restart with an command line option by braincow · Pull Request #224 · jazzband/Watson · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Specify past or future datetime for frame start or restart with an command line option #224

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

Closed
wants to merge 1 commit into from

Conversation

braincow
Copy link
Contributor

In issue #75 feature request was made for ability to specify start time for frames that are started and should be considered already running.

This pull request outlines a simple proposal for achieving this.

Pull request does not implement:

  • bash/zsh completion for -f/--from for add and restart commands
  • unit tests

if from_:
# modify the current frame with optional start time instead of "now"
watson.current = dict(start=from_, project=project, tags=tags)
current = watson.current
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not choosing to hack around the watson.start method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add more code and complexity if same result can be achieved with more elegant solution? Of course the elegance is in the eye of the beholder (and committer in this case :))

@varac
Copy link
varac commented Feb 6, 2019

@braincow What's the state of this PR ? I'd really like to see it merged !

@varac
Copy link
varac commented Mar 5, 2019

Ping @braincow ?

@reneatzi
Copy link
reneatzi commented Sep 3, 2019

Thank you, @braincow

Could you rebase your branch to resolve the conflicts? It would be easier for others to cherry pick the changes and hopefully they get merged soon.

@braincow braincow closed this Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0