Skip to content

Please handle user ending script (Ctrl+C) #9

@jagraham

Description

@jagraham

I think it would be great, if for any reason the user had to abort the Pomodoro script in PowerShell (e.g. clicking Ctrl+C), that you could handle reverting all of the settings that were changed. For example, I found this blog post about how to handle that: http://sushihangover.blogspot.com/2012/03/powershell-using-try-finally-block-to.html.

I also thought, since most Gets have a related Set and most Starts have a related Stop, that it would be cool if there were a Stop-Pomodoro cmdlet that would also reset all settings back to Available/Disturb-able.

Thanks! Great tool, btw.

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