Skip to content

Conversation

@ntrrg
Copy link
Contributor

@ntrrg ntrrg commented Nov 29, 2019

This adds a -w flag for changing the magefiles working directory. Currently reading magefiles from other directory with -d flag set it as working directory for the magefiles.

This doesn't break any existing code since the -w flag default value is the same as -d, just people using explicitly a -w flag will get this behavior.

Fixes: #243

Copy link
Member

@natefinch natefinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. This looks really good and I agree it's needed.

However, I think -w makes more sense than -C. Not sure why it would be C, I presume that's what some other tool uses, but I prefer that flags make sense on their own in this tool.
Also, I think uppercase flags are an anti-pattern regardless.
Finally, can you alphabetize the flags in the docs?

@ntrrg
Copy link
Contributor Author

ntrrg commented Jan 15, 2020

Yes, tar and Git 😅 great, I will work on that :)

@ntrrg ntrrg requested a review from natefinch January 15, 2020 21:09
Copy link
Member

@natefinch natefinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Magefiles dependencies in go.mod

2 participants