Skip to content

allow option to not cache on non-zero exit code #25

@dtanner

Description

@dtanner

Sometimes the expensive command I run fails. e.g. A brief network connectivity issue that I notice and fix after running the command. The problem when using bc::cache is that the result is cached. I'm not aware of a normal use scenario where I'd want the result to be cached on non-zero exit code, so that's my first suggestion.
If changing the default behavior isn't desired, it would be nice to allow the option to not cache on non-zero exit code.
p.s. I tried the memoize function, but it doesn't work for my scenario.

Thoughts?

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