ext

package
v0.0.0-...-e717a2b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(extensions ...Extension) error

Setup to run extension setup tasks

Types

type Extension

type Extension interface {
	Init(*workspaceconfig.Config) (bool, error)
	SetupTasks() SetupTasks
	Environment() map[string]string
	Aliases() map[string]string
	Sources() []string
	Paths() []string
	String() string
}

Extension interface

type Option

type Option func(*Options)

Option type

func CompleteMessage

func CompleteMessage(s string) Option

CompleteMessage to set task complete message

func ShowPercentage

func ShowPercentage() Option

ShowPercentage to enable percentage view

type Options

type Options struct {
	ShowPercentage  bool
	CompleteMessage string
}

Options struct

type ProgressBar

type ProgressBar interface {
	IncrBy(int, ...time.Duration)
	Completed() bool
}

ProgressBar interface

type SetupTask

type SetupTask struct {
	Status  string
	Handler SetupTaskHandler
	Options Options
}

SetupTask type

func Procedure

func Procedure(status string, handler SetupTaskHandler, opts ...Option) *SetupTask

Procedure creates new setup task

type SetupTaskHandler

type SetupTaskHandler func(ProgressBar) error

SetupTaskHandler for implementing installation or setup instructions

type SetupTaskHandlers

type SetupTaskHandlers []SetupTaskHandler

SetupTaskHandlers is the multiple setup task handlers type

type SetupTasks

type SetupTasks []*SetupTask

SetupTasks is the multiple setup task type

Jump to

Keyboard shortcuts

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