rano/util/open/open.go
Ankit Patial 26a00c9f7c working on auth.
mailer, basic setup with html template and a dev treansport
2024-11-15 21:42:15 +05:30

13 lines
370 B
Go

package open
// WithDefaultApp open a file, directory, or URI using the OS's default application for that object type.
func WithDefaultApp(input string) error {
cmd := open(input)
return cmd.Run()
}
// WithApp will open a file directory, or URI using the specified application.
func App(input string, appName string) error {
return openWith(input, appName).Run()
}