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

Allow functions as shorthand commands #118

Merged
merged 3 commits into from
Dec 22, 2018
Merged

Allow functions as shorthand commands #118

merged 3 commits into from
Dec 22, 2018

Conversation

teogeos
Copy link
Contributor

@teogeos teogeos commented Sep 17, 2018

The documentation declares command as being of type string or Function, and states that it can be "omitted by directly setting the target with the command". It made me believe that I could directly pass a function as a target, but this actually only works for strings. This PR allows passing a function as target and omitting command.

Teo Metz and others added 3 commits September 18, 2018 10:12
CI would break with more recent versions of xo as grunt-shell has to
support node v4.
@teogeos
Copy link
Contributor Author

teogeos commented Sep 18, 2018

Sorry for the PR after two years ^^

I fixed CI errors. If you prefer setting the node engine to >=6, use a newer version of xo and make a major version bump tell me and i'll update the PR (I'll let you do the version bump I guess).

@teogeos
Copy link
Contributor Author

teogeos commented Oct 17, 2018

@sindresorhus hello, do you think there's any chance this could be merged ?

@sindresorhus sindresorhus merged commit 86680b4 into sindresorhus:master Dec 22, 2018
@sindresorhus
Copy link
Owner

Sorry for the delay. Thanks for fixing this :)

@teogeos
Copy link
Contributor Author

teogeos commented Dec 24, 2018

No problem, thanks for merging :)

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.

2 participants