install

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package install implements installation functionality of binq.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opt RunOption) (err error)

Types

type Mode

type Mode int
const (
	ModeDLOnly Mode = 1 << iota
	ModeExtract
	ModeExecutable
	ModeDefault = ModeExtract | ModeExecutable
)

type RunOption

type RunOption struct {
	Mode      Mode
	Source    string
	DestDir   string
	DestFile  string
	Output    io.Writer
	LogLevel  lv.Level
	ServerURL string
}

type Runner

type Runner struct {
	Mode      Mode
	Source    string
	DestDir   string
	DestFile  string
	Logger    lv.Granular
	ServerURL *url.URL
	// contains filtered or unexported fields
}

func (*Runner) Run

func (r *Runner) Run() (err error)

Jump to

Keyboard shortcuts

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