Skip to content

add cli options & enhance banner#9

Merged
HuRuilizhen merged 7 commits into
devfrom
huruilizhen/feat_20251115
Nov 16, 2025
Merged

add cli options & enhance banner#9
HuRuilizhen merged 7 commits into
devfrom
huruilizhen/feat_20251115

Conversation

@HuRuilizhen

Copy link
Copy Markdown
Owner
  • refactor code base
  • add --show-qrcode cli option
  • add --local-only cli option

@HuRuilizhen HuRuilizhen self-assigned this Nov 16, 2025
@HuRuilizhen HuRuilizhen added the enhancement New feature or request label Nov 16, 2025
@HuRuilizhen

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/main.rs Outdated
Comment on lines 10 to 12
let (banner_context, server_context) = parse();
banner::show_banner(banner_context);
server::start(server_context).await.unwrap();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid printing banner before server binds

Main now prints the “🚀 LanJet Service Started” banner before calling server::start. When the listener fails to bind (e.g. port already in use or insufficient privileges), show_banner has already told the user that the service started even though server::start immediately logs an error and exits. This is a regression from the previous behavior where the start message was emitted only after TcpListener::bind succeeded. Please move the banner output to after the listener has been created so that we only announce success once the server is actually running.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Solved~

Comment thread src/banner/mod.rs Outdated
@HuRuilizhen HuRuilizhen merged commit ed66ebb into dev Nov 16, 2025
1 check passed
@HuRuilizhen HuRuilizhen deleted the huruilizhen/feat_20251115 branch November 16, 2025 12:43
@HuRuilizhen HuRuilizhen linked an issue Nov 16, 2025 that may be closed by this pull request
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚀 v0.2.0 Release: Major Usability Enhancement

1 participant