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

Add --no-banner flag #839

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Add --no-banner flag #839

merged 3 commits into from
Oct 14, 2024

Conversation

kaplanelad
Copy link
Contributor

Add --no-banner flag to allow disabling the banner display.

related issue: #827

@kaplanelad kaplanelad self-assigned this Oct 14, 2024
@@ -14,6 +14,6 @@ async fn main() -> loco_rs::Result<()> {
port: boot_result.app_context.config.server.port,
binding: boot_result.app_context.config.server.binding.to_string(),
};
start::<App>(boot_result, serve_params).await?;
start::<App>(boot_result, serve_params, true).await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

i would invert the bool meaning
the regular action is that we show banner
the special action is that someone requests a no-banner
so i would name the flag hide_banner with default false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@kaplanelad kaplanelad merged commit fe0200c into master Oct 14, 2024
17 checks passed
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