1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-20 06:28:04 +00:00

Moved open_file

This commit is contained in:
2023-02-18 15:42:51 +01:00
parent 1b2315b0b0
commit 2b6a4574ac
4 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,6 @@
package open_file
// Reveal reveals the specified file in the Finder.
func Reveal(fname string) {
reveal(fname)
}

View File

@ -0,0 +1,9 @@
//go:build darwin
package open_file
import "os/exec"
func reveal(fname string) {
exec.Command("open", "--reveal", fname).Run()
}

View File

@ -0,0 +1,9 @@
//go:build windows
package open_file
import "os/exec"
func reveal(fname string) {
exec.Command("explorer", fname).Run()
}