Skip to content

[New Feature Request] sqitch grep #532

Description

@Ovid

Quite often I'm searching through my sqitch directories for a particular thing, such as "when did that table name get changed?" However, grep doesn't know anything about the sqitch.plan, so my results aren't sorted in a useful way. So I hacked together a quick sqitch grep command.

It allows to do things like:

 sqitch grep --type deploy -i ALTER TABLE

And the results will be show in the order they appear in the plan, with the caveat that deploy always appears before verify which always appears before revert.

I have an (untested) proof of concept at this gist.

The code is a bit of a hack as I threw it together quickly. There's a lot more which could probably be done with it (including better docs).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions