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

Support aliases #31

Merged
merged 10 commits into from
Oct 29, 2018
Merged

Support aliases #31

merged 10 commits into from
Oct 29, 2018

Conversation

julienduchesne
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Oct 9, 2018

Pull Request Test Coverage Report for Build 621

  • 50 of 67 (74.63%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+1.7%) to 15.809%

Changes Missing Coverage Covered Lines Changed/Added Lines %
docker.go 0 3 0.0%
config.go 50 54 92.59%
main.go 0 10 0.0%
Files with Coverage Reduction New Missed Lines %
config.go 1 53.07%
Totals Coverage Status
Change from base Build 611: 1.7%
Covered Lines: 126
Relevant Lines: 797

💛 - Coveralls

@julienduchesne
Copy link
Contributor Author

@jocgir @dblanchette . Reminder that this is still waiting for approval

- Avoid possible conflict by making the build config private to avoid it being defined in a user config file
- Transform RunBefore and RunAfter into private array to allow cumulation of commands as it is done with build configs.
We wanted to execute scripts in reverse declared order but this code execute scripts in reverse string order (which is completely different)
Moving default initialization prior to evaluate the arguments breaks the argument parser (i.e. The default config is evaluated without considering the supplied arguments).
This was also breaking when no argument was supplied
The loop over a map was useless
Add support for quoted arguments in alias
@julienduchesne julienduchesne merged commit e5747f2 into master Oct 29, 2018
@julienduchesne julienduchesne deleted the support-aliases branch October 29, 2018 18:29
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.

3 participants