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

Provide 'app' to '--run' lambda. #41

Merged
merged 6 commits into from
Nov 22, 2023
Merged

Provide 'app' to '--run' lambda. #41

merged 6 commits into from
Nov 22, 2023

Conversation

floitsch
Copy link
Member

No description provided.

Copy link
Member

@kasperl kasperl 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 to me.

@@ -75,6 +103,10 @@ class Command:
The $help is a longer description of the command that can span multiple lines. Use
indented lines to continue paragraphs (just like toitdoc). The first paragraph of the
$help is used as short help, and should have meaningful content on its own.

The $run callback is invoked when the command is executed. It is given the $App and the
Copy link
Member

Choose a reason for hiding this comment

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

I think I agree with the chosen order here (app before parsed), but it would probably have caused less churn to add the app as the last parameter.

Copy link
Member Author

Choose a reason for hiding this comment

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

agreed.
I think it's relatively easy to fix, though. So hopefully it won't really be a huge issue.

Base automatically changed from floitsch/ui to main November 22, 2023 09:49
@floitsch floitsch merged commit 80c1692 into main Nov 22, 2023
6 checks passed
@floitsch floitsch deleted the floitsch/ui.app branch November 22, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants