File: browser.go

package info (click to toggle)
gh 2.46.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,548 kB
  • sloc: sh: 227; makefile: 117
file content (16 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package browser

import (
	"io"

	ghBrowser "github.com/cli/go-gh/v2/pkg/browser"
)

type Browser interface {
	Browse(string) error
}

func New(launcher string, stdout, stderr io.Writer) Browser {
	b := ghBrowser.New(launcher, stdout, stderr)
	return b
}