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

Make complex commands slightly more friendly to work with #2784

Merged
merged 2 commits into from Apr 29, 2022

Conversation

jan-warchol
Copy link
Contributor

  • extract logical parts to separate variables (e.g. $opts)
  • put options in $opts in similar order
  • move +/-m into $opts (at the end, so they won't be overridden)
  • split pipelines into multiple lines
  • remove "echo" that seems to be redundant

All this should help with readability and also result in cleaner diffs
when changes are made.

What do you think? Is it helpful?

- extract logical parts to separate variables (e.g. $opts)
- put options in $opts in similar order
- move +/-m into $opts (at the end, so they won't be overridden)
- split pipelines into multiple lines
- remove "echo" that seems to be redundant

All this should help with readability and also result in cleaner diffs
when changes are made.
@junegunn
Copy link
Owner

The patch look good, thanks!

@junegunn junegunn merged commit 6dcf5c3 into junegunn:master Apr 29, 2022
@jan-warchol jan-warchol deleted the format-long-lines branch August 26, 2022 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants