Exemple #1
0
func browserCommand(url string) error {
	launcher, err := utils.BrowserLauncher()
	if err != nil {
		return err
	}

	launcher = append(launcher, url)
	c := cmd.NewWithArray(launcher)
	return c.Exec()
}
Exemple #2
0
func (a *Args) After(command ...string) {
	a.afterChain = append(a.afterChain, cmd.NewWithArray(command))
}
Exemple #3
0
func (a *Args) Before(command ...string) {
	a.beforeChain = append(a.beforeChain, cmd.NewWithArray(command))
}