mirror of
https://github.com/ollama/ollama.git
synced 2026-07-23 09:10:53 -05:00
remove foreground flag
This commit is contained in:
@@ -136,10 +136,9 @@ func (h *HermesDesktop) packagedAppExists() bool {
|
||||
|
||||
// shouldRunForeground reports whether Hermes Desktop should stay attached to
|
||||
// the launcher terminal instead of detaching into the background. Help and
|
||||
// build-only invocations produce terminal output, and --foreground lets users
|
||||
// opt into the attached behavior explicitly.
|
||||
// build-only invocations produce terminal output.
|
||||
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:
|
||||
|
||||
@@ -668,9 +668,8 @@ func TestHermesDesktopRun(t *testing.T) {
|
||||
{
|
||||
name: "desktop subcommand",
|
||||
goos: "darwin",
|
||||
args: []string{"--foreground"},
|
||||
clearPkgEnv: true,
|
||||
want: "[desktop --foreground]",
|
||||
want: "[desktop]",
|
||||
},
|
||||
{
|
||||
name: "skip build when packaged app exists",
|
||||
|
||||
Reference in New Issue
Block a user