Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top-level -C option to switch current working directory #411

Closed
tsibley opened this issue Dec 5, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@tsibley
Copy link
Contributor

commented Dec 5, 2018

I'd like to keep multiple sqitch projects with their own sqitch.conf files as sibling directories in a single git repo and be able to run, for example, sqitch -C project-a/ deploy … and sqitch -C project-b/ deploy … instead of (cd project-a/; sqitch deploy …). Both git and tar have -C options which have the effect of ~immediately changing the working directory when they start:

   -C <path>
       Run as if git was started in <path> instead of the current working
       directory. When multiple -C options are given, each subsequent
       non-absolute -C <path> is interpreted relative to the preceding -C
       <path>.

   -C, --directory=DIR
          Change  to DIR before performing any operations.  This option is
          order-sensitive, i.e. it affects all options that follow.

@theory theory added the feature label Dec 8, 2018

@theory theory added this to the v1.0.0 milestone Dec 8, 2018

@theory

This comment has been minimized.

Copy link
Collaborator

commented Dec 8, 2018

Great idea, thanks!

@theory theory closed this in 55b95db Dec 21, 2018

@theory

This comment has been minimized.

Copy link
Collaborator

commented Dec 21, 2018

How does 55b95db look to you, @tsibley?

@theory theory self-assigned this Dec 21, 2018

@tsibley

This comment has been minimized.

Copy link
Contributor Author

commented Dec 24, 2018

Commit looks good to me! I haven't had a chance to test it but will sooner or later. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.