cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigReader = Reader{ViperConfig: viper.New()}
)

Functions

func Execute

func Execute()

func NewOpenCmd

func NewOpenCmd(configManager ConfigManager, browser Browser) *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

Types

type Browser

type Browser interface {
	OpenURL(string) error
}

Browser opens url in a new window of the default web browser

type ConfigManager

type ConfigManager interface {
	ReadConfig() (Config, error)
}

type DefaultBrowser

type DefaultBrowser struct {
}

DefaultBrowser is the default web browser

func (DefaultBrowser) OpenURL

func (e DefaultBrowser) OpenURL(url string) error

OpenURL opens url in the default web browser

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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