Skip to content

add 'lpg on <loc> make' and 'lpg on <loc> ensure' #6

Description

@Quelklef

Add these three commands:

  • lpg on <loc> make, equivalent to lpg make <loc>

  • lpg ensure <loc>, equivalent to [ -e <loc> ] || lpg make <loc>

  • lpg on <loc> ensure, equivalent to lpg ensure <loc>

These are useful when using alias my-lpg="lpg on '$MY_LPG_LOC' ", so that you can just my-lpg ensure before an lpg operation to make sure it succeeds.

Maybe better is to add an -e flag to every on op, which creates the DB if it does not exist? Then you can alias my-lpg="lpg on '$MY_LPG_LOC' -e ".

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