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

Refactor pager commands & synchronous shell commands (no-op) #1243

Merged
merged 4 commits into from
May 21, 2023

Conversation

ilyagr
Copy link
Collaborator

@ilyagr ilyagr commented May 13, 2023

This PR is meant to not cause any changes to functionality. It is the follow-up to #1201 and cleans up #1146.

It's designed to be reviewed commit-by-commit (though feel free do do whatever works for you). The first commit includes the changes I suggested in #1146 and #1152, the following commits are a slightly more extensive deduplication of functionality.

@ilyagr ilyagr changed the title Refactor pager commands & sync shell commands (no-op) Refactor pager commands & synchronous shell commands (no-op) May 14, 2023
@ilyagr ilyagr marked this pull request as draft May 14, 2023 03:12
@ilyagr ilyagr marked this pull request as ready for review May 14, 2023 05:14
Copy link
Collaborator

@joelim-work joelim-work left a comment

Choose a reason for hiding this comment

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

Thanks very much for working on this @ilyagr!

I have left a few minor comments, but I think this PR is actually quite good already. In my opinion there is no need to make the code perfect here, and further refactoring work can alwasy be done later.

app.go Outdated Show resolved Hide resolved
app.go Outdated Show resolved Hide resolved
app.go Outdated Show resolved Hide resolved
app.go Outdated Show resolved Hide resolved
ilyagr added 2 commits May 13, 2023 23:34
…cation

This is meant to be straightforward and clearly a no-op,\
at the cost of being a bit verbose.
ilyagr added a commit to ilyagr/lf that referenced this pull request May 14, 2023
ilyagr added 2 commits May 13, 2023 23:39
After the previous refactors, the logic for async shell commands can
be simplified somewhat. There is likely room for further improvements,
but that is beyond the scope of this PR.
@ilyagr
Copy link
Collaborator Author

ilyagr commented May 14, 2023

Thanks for looking this over!

Copy link
Collaborator

@joelim-work joelim-work 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 once again for working on this 👍

@gokcehan
Copy link
Owner

Thanks @ilyagr for the patch and @joelim-work for the review.

@gokcehan gokcehan merged commit 346c439 into gokcehan:master May 21, 2023
@ilyagr
Copy link
Collaborator Author

ilyagr commented May 21, 2023

Thanks for reviewing, @gokcehan @joelim-work!

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