git-directory-deploy
git-directory-deploy copied to clipboard
Add positional args for directory, branch, and repository.
This implements [<options>] [<directory> [<branch> [<repository]]] but requires all <options> come before the positional args.
Fixes part of X1011/git-directory-deploy#14.
This feel a little hacky to me, but it seems to work in my testing.
as with #19, i'm going to wait until we have tests for order of preference to merge this, cause i think the env variables will override these arguments as it is currently implemented.
Got some tests committed here, though I'm still working on the positional args themselves.
I've merged master into this, and added a couple more commits. I think this is working now. All tests pass (including one specifically for the positional args), and there're docs for this.