7189a67a33
* Adding snowflake as a bundled database secrets plugin * Add snowflake-database-plugin to expected bundled plugins * Add snowflake plugin name to the mockBuiltinRegistry
17 lines
320 B
Go
17 lines
320 B
Go
package browser
|
|
|
|
import (
|
|
"errors"
|
|
"os/exec"
|
|
)
|
|
|
|
func openBrowser(url string) error {
|
|
err := runCmd("xdg-open", url)
|
|
if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound {
|
|
return errors.New("xdg-open: command not found - install xdg-utils from ports(8)")
|
|
}
|
|
return err
|
|
}
|
|
|
|
func setFlags(cmd *exec.Cmd) {}
|