-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(airc): _daemon_install_done helper + trim daemon comments (#205 target 2, net -40) #209
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4903,6 +4903,19 @@ cmd_daemon_install() { | |||||||||||||||||||||||||||||||||||
| esac | ||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| # Print the common "daemon installed; here's where to look" footer. | ||||||||||||||||||||||||||||||||||||
| # Three platform installers used to duplicate this 5-line block; now | ||||||||||||||||||||||||||||||||||||
| # they call this helper. Pass the platform-specific lead line as $1 and | ||||||||||||||||||||||||||||||||||||
| # any optional trailing note as $2 (heredoc-style multi-line OK). | ||||||||||||||||||||||||||||||||||||
| _daemon_install_done() { | ||||||||||||||||||||||||||||||||||||
| local lead="$1" scope="$2" note="${3:-}" | ||||||||||||||||||||||||||||||||||||
| echo " ✓ $lead" | ||||||||||||||||||||||||||||||||||||
| echo " airc will now auto-start at login + restart on exit." | ||||||||||||||||||||||||||||||||||||
| echo " Logs: $scope/daemon.log" | ||||||||||||||||||||||||||||||||||||
| echo " Status: airc daemon status" | ||||||||||||||||||||||||||||||||||||
|
Comment on lines
+4913
to
+4915
|
||||||||||||||||||||||||||||||||||||
| if [ -n "$note" ]; then echo ""; printf ' %s\n' "$note"; fi | ||||||||||||||||||||||||||||||||||||
|
Comment on lines
+4911
to
+4916
|
||||||||||||||||||||||||||||||||||||
| local lead="$1" scope="$2" note="${3:-}" | |
| echo " ✓ $lead" | |
| echo " airc will now auto-start at login + restart on exit." | |
| echo " Logs: $scope/daemon.log" | |
| echo " Status: airc daemon status" | |
| if [ -n "$note" ]; then echo ""; printf ' %s\n' "$note"; fi | |
| local lead="$1" scope="$2" note="${3:-}" note_line | |
| echo " ✓ $lead" | |
| echo " airc will now auto-start at login + restart on exit." | |
| echo " Logs: $scope/daemon.log" | |
| echo " Status: airc daemon status" | |
| if [ -n "$note" ]; then | |
| echo "" | |
| while IFS= read -r note_line || [ -n "$note_line" ]; do | |
| printf ' %s\n' "$note_line" | |
| done <<< "$note" | |
| fi |
Copilot
AI
Apr 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Windows, the install output previously included additional actionable paths/commands (daemon.err, launcher path, and airc daemon uninstall). Switching to _daemon_install_done drops that guidance, which is user-visible behavior change (and contradicts the “same output text” claim). Consider passing a Windows-specific note/extra footer lines so users still see where restart events go and how to stop/uninstall.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The helper’s header comment says the optional trailing note is passed as $2, but the function actually treats $2 as scope and reads the note from $3. Please fix the comment (or the signature) so callers don’t accidentally swap scope/note arguments later.