tool

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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

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

func (*Base) ExeFullPath

func (t *Base) ExeFullPath() string

func (*Base) ExeName

func (t *Base) ExeName() string

func (*Base) HowToInstall

func (t *Base) HowToInstall() string

func (*Base) Init

func (t *Base) Init()

func (*Base) IsInstalled

func (t *Base) IsInstalled() bool

func (*Base) Name

func (t *Base) Name() string

func (*Base) Run

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

func (*Base) SetExeName

func (t *Base) SetExeName(exeName string)

func (*Base) SetName

func (t *Base) SetName(name string)

func (*Base) SetToolDescription

func (t *Base) SetToolDescription(description Description)

func (*Base) Where

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

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