Skip to content

Remove --background and --foreground flags from pv start#51

Merged
munezaclovis merged 2 commits intomainfrom
feat/remove-start-background-flag
Mar 27, 2026
Merged

Remove --background and --foreground flags from pv start#51
munezaclovis merged 2 commits intomainfrom
feat/remove-start-background-flag

Conversation

@munezaclovis
Copy link
Copy Markdown
Contributor

Summary

  • Removes --background flag from pv start — background execution now exclusively uses pv daemon:enable
  • Removes --foreground flag (was dead code — registered but never read)
  • Removes --foreground from the launchd plist template
  • Simplifies cmd/start.go from 99 to 32 lines

Test plan

  • go build ./... — clean
  • go test ./... — all pass
  • go vet ./... — clean
  • gofmt -l . — clean
  • Existing daemon plists with --foreground still work (it was a no-op)
  • pv daemon:enable regenerates plist without --foreground

@munezaclovis munezaclovis merged commit bf45f89 into main Mar 27, 2026
1 check failed
@munezaclovis munezaclovis deleted the feat/remove-start-background-flag branch March 27, 2026 22:48
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.

1 participant