subcmd

package
v0.0.0-...-8e866c8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
)

Functions

This section is empty.

Types

type Cleanup

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

Cleanup command

func NewCleanup

func NewCleanup() *Cleanup

NewCleanup returns Cleanup command

func (*Cleanup) Name

func (c *Cleanup) Name() string

Name returns command name

func (*Cleanup) Run

func (c *Cleanup) Run(args []string) error

Run runs cleanup command

func (*Cleanup) Summary

func (c *Cleanup) Summary() string

Summary returns command summary

func (*Cleanup) Usage

func (c *Cleanup) Usage()

Usage shows command usage

type CleanupOptions

type CleanupOptions struct {
	ShowHelp bool
}

CleanupOptions flag set

type Command

type Command interface {
	Name() string
	Summary() string
	Usage()
	Run([]string) error
}

Command sub command interface

type CommandRepository

type CommandRepository interface {
	Find(string) (Command, error)
	Commands() []Command
}

CommandRepository sub command repository interface

func Repository

func Repository() CommandRepository

type Help

type Help struct{}

Help command

func NewHelp

func NewHelp() *Help

NewHelp returns Help

func (*Help) Name

func (c *Help) Name() string

Name returns command name

func (*Help) Run

func (c *Help) Run(args []string) error

Run runs help command

func (*Help) Summary

func (c *Help) Summary() string

Summary returns command summary

func (*Help) Usage

func (c *Help) Usage()

Usage shows command usage

type Init

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

Init command

func NewInit

func NewInit() *Init

NewInit returns Init command

func (*Init) Name

func (c *Init) Name() string

Name returns command name

func (*Init) Run

func (c *Init) Run(args []string) error

Run runs init command

func (*Init) Summary

func (c *Init) Summary() string

Summary returns command summary

func (*Init) Usage

func (c *Init) Usage()

Usage shows command usage

type InitOptions

type InitOptions struct {
	ShowHelp  bool
	ShellType string
}

InitOptions flag set

type Install

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

Install command

func NewInstall

func NewInstall() *Install

NewInstall returns Install command

func (*Install) Name

func (c *Install) Name() string

Name returns command name

func (*Install) Run

func (c *Install) Run(args []string) error

Run runs install command

func (*Install) Summary

func (c *Install) Summary() string

Summary returns command summary

func (*Install) Usage

func (c *Install) Usage()

Usage shows command usage

type InstallOptions

type InstallOptions struct {
	ShowHelp      bool
	Force         bool
	Verbose       bool
	ConfigureOpts []string
	NoEnsurepip   bool
	NoSymlink     bool
	Jobs          int
}

InstallOptions flag set

type List

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

List command

func NewList

func NewList() *List

NewList returns List command

func (*List) Name

func (c *List) Name() string

Name returns command name

func (*List) Run

func (c *List) Run(args []string) error

Run runs cleanup command

func (*List) Summary

func (c *List) Summary() string

Summary returns command summary

func (*List) Usage

func (c *List) Usage()

Usage shows command usage

type ListOptions

type ListOptions struct {
	ShowHelp         bool
	KnownInstallable bool
}

ListOptions flag set

type Off

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

Off command

func NewOff

func NewOff() *Off

NewOff returns Off command

func (*Off) Name

func (c *Off) Name() string

Name returns command name

func (*Off) Run

func (c *Off) Run(args []string) error

Run runs use command

func (*Off) Summary

func (c *Off) Summary() string

Summary returns command summary

func (*Off) Usage

func (c *Off) Usage()

Usage shows command usage

type OffOptions

type OffOptions struct {
	ShowHelp bool
}

OffOptions flag set

type Switch

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

Switch command

func NewSwitch

func NewSwitch() *Switch

NewSwitch returns Switch command

func (*Switch) Name

func (c *Switch) Name() string

Name returns command name

func (*Switch) Run

func (c *Switch) Run(args []string) error

Run runs switch command

func (*Switch) Summary

func (c *Switch) Summary() string

Summary returns command summary

func (*Switch) Usage

func (c *Switch) Usage()

Usage shows command usage

type SwitchOptions

type SwitchOptions struct {
	ShowHelp bool
}

SwitchOptions flag set

type Uninstall

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

Uninstall command

func NewUninstall

func NewUninstall() *Uninstall

NewUninstall returns Uninstall command

func (*Uninstall) Name

func (c *Uninstall) Name() string

Name returns command name

func (*Uninstall) Run

func (c *Uninstall) Run(args []string) error

Run runs uninstall command

func (*Uninstall) Summary

func (c *Uninstall) Summary() string

Summary returns command summary

func (*Uninstall) Usage

func (c *Uninstall) Usage()

Usage shows command usage

type UninstallOptions

type UninstallOptions struct {
	ShowHelp bool
}

UninstallOptions flag set

type Update

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

Update command

func NewUpdate

func NewUpdate() *Update

NewUpdate returns Update command

func (*Update) Name

func (c *Update) Name() string

Name returns command name

func (*Update) Run

func (c *Update) Run(args []string) error

Run runs update command

func (*Update) Summary

func (c *Update) Summary() string

Summary returns command summary

func (*Update) Usage

func (c *Update) Usage()

Usage shows command usage

type UpdateOptions

type UpdateOptions struct {
	ShowHelp bool
}

UpdateOptions flag set

type Use

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

Use command

func NewUse

func NewUse() *Use

NewUse returns Use command

func (*Use) Name

func (c *Use) Name() string

Name returns command name

func (*Use) Run

func (c *Use) Run(args []string) error

Run runs use command

func (*Use) Summary

func (c *Use) Summary() string

Summary returns command summary

func (*Use) Usage

func (c *Use) Usage()

Usage shows command usage

type UseOptions

type UseOptions struct {
	ShowHelp bool
}

UseOptions flag set

type Venv

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

Venv command

func NewVenv

func NewVenv() *Venv

NewVenv returns Venv command

func (*Venv) Name

func (c *Venv) Name() string

Name returns command name

func (*Venv) Run

func (c *Venv) Run(args []string) error

Run runs venv command

func (*Venv) Summary

func (c *Venv) Summary() string

Summary returns command summary

func (*Venv) Usage

func (c *Venv) Usage()

Usage shows command usage

type VenvOptions

type VenvOptions struct {
	ShowHelp           bool
	Python             string
	SystemSitePackages bool
	List               bool
	Remove             bool
}

VenvOptions flag set

Jump to

Keyboard shortcuts

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