Skip to content

Implement a lock file #166

Description

@blaisegarant

taskw being used by a variety of projects, there is no telling when it will be invoked. But should you have a hooks that get invoked (for exemple, on-exit), the output of those hooks will be included as a return value of taskw.

I think that by touching a lock file at the start of _execute and deleting it at the end, would permit any hook to know if taskwarrior was run as part of a script with taskw or from an action of the user and act accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions