Skip to content

Add support for arbitrary shfmt command with arguments #152

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

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Add support for arbitrary shfmt command with arguments #152

merged 2 commits into from
Jun 8, 2020

Conversation

funous
Copy link
Contributor

@funous funous commented Jun 7, 2020

Make it possible to use complex shfmt commands, such as shfmt running in a docker container. Use the codefmt#formatterhelpers#ResolveFlagToArray approach seen in other formatters.

Similar to #124

Comment on lines -85 to +86
The path to the shfmt executable.
The path to the shfmt executable. String, list, or callable that takes no args
and returns a string or a list.
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you manually edited this without updating the source in flags.vim it's generated from, so it'll get reverted next time someone regenerates the help docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the flags.vim and checked that vimdoc generates the same string. I've also updated flags.vim to have the source for the changes I've done manually in #124. I can split it into another PR if it's preferred.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! Same PR is fine for this, no worries.

funous and others added 2 commits June 8, 2020 20:10
Make it possible to use complex shfmt commands, such as shfmt running in a docker container. Use the codefmt#formatterhelpers#ResolveFlagToArray approach seen in other formatters.
@dbarnett dbarnett merged commit 9033599 into google:master Jun 8, 2020
@funous funous deleted the shfmt_executable_list branch June 9, 2020 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants