browser

package
v1.0.0-beta.0.rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

* Package from the official Github CLI https://github.com/cli/cli/blob/f30bc5bc64f9c3a839e39713adab48790264119c/pkg/browser/browser.go All rights reserved to the package authors, respectively. MIT License. See https://github.com/cli/cli/blob/trunk/LICENSE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(url string) (*exec.Cmd, error)

Command produces an exec.Cmd respecting runtime.GOOS and $BROWSER environment variable

func ForOS

func ForOS(goos, url string) *exec.Cmd

ForOS produces an exec.Cmd to open the web browser for different OS

func FromLauncher

func FromLauncher(launcher, url string) (*exec.Cmd, error)

FromLauncher parses the launcher string based on shell splitting rules

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL