mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 22:18:03 +00:00
Logging
This commit is contained in:
6
internal/utils/open_file/open.go
Normal file
6
internal/utils/open_file/open.go
Normal file
@ -0,0 +1,6 @@
|
||||
package open_file
|
||||
|
||||
// Reveal reveals the specified file in the Finder.
|
||||
func Reveal(fname string) {
|
||||
reveal(fname)
|
||||
}
|
9
internal/utils/open_file/open_darwin.go
Normal file
9
internal/utils/open_file/open_darwin.go
Normal file
@ -0,0 +1,9 @@
|
||||
//go:build darwin
|
||||
|
||||
package open_file
|
||||
|
||||
import "os/exec"
|
||||
|
||||
func reveal(fname string) {
|
||||
exec.Command("open", "--reveal", fname).Run()
|
||||
}
|
9
internal/utils/open_file/open_windows.go
Normal file
9
internal/utils/open_file/open_windows.go
Normal file
@ -0,0 +1,9 @@
|
||||
//go:build windows
|
||||
|
||||
package open_file
|
||||
|
||||
import "os/exec"
|
||||
|
||||
func reveal(fname string) {
|
||||
exec.Command("explorer", fname).Run()
|
||||
}
|
Reference in New Issue
Block a user