1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-19 22:18:03 +00:00
This commit is contained in:
2023-02-11 21:57:52 +01:00
parent ff3766ad85
commit 126b42d570
19 changed files with 168 additions and 84 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()
}