mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-26 20:41:35 +01:00
7a10ea10df
Fix open default to home page Improve path join and open with no arg add labels and milestones Add tea open Reviewed-on: https://gitea.com/gitea/tea/pulls/101 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: John Olheiser <john.olheiser@gmail.com>
16 lines
239 B
Go
16 lines
239 B
Go
// +build darwin
|
|
|
|
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)
|
|
}
|