tool

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureDataStudio

type AzureDataStudio struct {
	Base
}

func (*AzureDataStudio) Init

func (t *AzureDataStudio) Init()

func (*AzureDataStudio) Run

func (t *AzureDataStudio) Run(args []string) (int, error)

type Base added in v0.13.0

type Base struct {
	// contains filtered or unexported fields
}

func (*Base) ExeFullPath added in v0.13.0

func (t *Base) ExeFullPath() string

func (*Base) ExeName added in v0.13.0

func (t *Base) ExeName() string

func (*Base) HowToInstall added in v0.13.0

func (t *Base) HowToInstall() string

func (*Base) Init added in v0.13.0

func (t *Base) Init()

func (*Base) IsInstalled added in v0.13.0

func (t *Base) IsInstalled() bool

func (*Base) Name added in v0.13.0

func (t *Base) Name() string

func (*Base) Run added in v0.13.0

func (t *Base) Run(args []string) (int, error)

func (*Base) SetExeName added in v0.13.0

func (t *Base) SetExeName(exeName string)

func (*Base) SetName added in v0.13.0

func (t *Base) SetName(name string)

func (*Base) SetToolDescription added in v0.13.0

func (t *Base) SetToolDescription(description Description)

func (*Base) Where added in v0.13.0

func (t *Base) Where() string

type Description

type Description struct {
	Name string

	// Purpose describes what this tool does
	Purpose string

	// Text instructions to install the tool
	InstallText InstallText
}

type InstallText added in v0.13.0

type InstallText struct {
	Windows string
	Linux   string
	Mac     string
}

type Tool

type Tool interface {
	Init()
	Name() (name string)
	Run(args []string) (exitCode int, err error)
	IsInstalled() bool
	HowToInstall() string
}

Jump to

Keyboard shortcuts

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