remove foreground flag

This commit is contained in:
Bruce MacDonald
2026-06-25 12:38:07 -07:00
parent 3e03e2425d
commit ce5dd77d44
2 changed files with 3 additions and 5 deletions

View File

@@ -136,10 +136,9 @@ func (h *HermesDesktop) packagedAppExists() bool {
// shouldRunForeground reports whether Hermes Desktop should stay attached to // shouldRunForeground reports whether Hermes Desktop should stay attached to
// the launcher terminal instead of detaching into the background. Help and // the launcher terminal instead of detaching into the background. Help and
// build-only invocations produce terminal output, and --foreground lets users // build-only invocations produce terminal output.
// opt into the attached behavior explicitly.
func (h *HermesDesktop) shouldRunForeground(args []string) bool { func (h *HermesDesktop) shouldRunForeground(args []string) bool {
return hermesDesktopHasFlag(args, "--foreground", "--help", "-h", "--build-only") return hermesDesktopHasFlag(args, "--help", "-h", "--build-only")
} }
// These roots mirror Hermes' own install layout: // These roots mirror Hermes' own install layout:

View File

@@ -668,9 +668,8 @@ func TestHermesDesktopRun(t *testing.T) {
{ {
name: "desktop subcommand", name: "desktop subcommand",
goos: "darwin", goos: "darwin",
args: []string{"--foreground"},
clearPkgEnv: true, clearPkgEnv: true,
want: "[desktop --foreground]", want: "[desktop]",
}, },
{ {
name: "skip build when packaged app exists", name: "skip build when packaged app exists",