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
|
// 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:
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user