20 lines
397 B
Go
20 lines
397 B
Go
//go:build darwin
|
|
|
|
// Copyright 2024 Patial Tech. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package open
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
func open(input string) *exec.Cmd {
|
|
return exec.Command("open", input)
|
|
}
|
|
|
|
func openWith(input string, appName string) *exec.Cmd {
|
|
return exec.Command("open", "-a", appName, input)
|
|
}
|