tool

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 5 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 {
	// contains filtered or unexported fields
}

func (*AzureDataStudio) HowToInstall added in v0.15.0

func (t *AzureDataStudio) HowToInstall() string

func (*AzureDataStudio) Init

func (t *AzureDataStudio) Init()

func (*AzureDataStudio) IsInstalled added in v0.15.0

func (t *AzureDataStudio) IsInstalled() bool

func (*AzureDataStudio) Name added in v0.15.0

func (t *AzureDataStudio) Name() string

func (*AzureDataStudio) Run

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

func (*AzureDataStudio) SetExePathAndName added in v0.15.0

func (t *AzureDataStudio) SetExePathAndName(exeName string)

func (*AzureDataStudio) SetToolDescription added in v0.15.0

func (t *AzureDataStudio) SetToolDescription(description Description)

type Description

type Description struct {
	// Name of the tool, e.g. "Azure Data Studio"
	Name string

	// Purpose describes what this tool does
	Purpose string

	// How to install the tool, e.g. what URL to go to, to download it
	InstallText 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