cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct{}

CLI represents a CLI for Vin.

func New

func New() *CLI

func (*CLI) AskGitHubAccessToken

func (c *CLI) AskGitHubAccessToken() (string, error)

AskGitHubAccessToken prompts for the GitHub access token.

func (*CLI) Clean

func (c *CLI) Clean() error

Clean cleans cache files.

func (*CLI) Example added in v0.3.1

func (c *CLI) Example() error

Example shows a config example.

func (*CLI) Get added in v0.4.0

func (c *CLI) Get(opt GetOptions) error

Get gets applications.

func (*CLI) ShowBinDir added in v0.4.0

func (c *CLI) ShowBinDir() error

ShowBinDir shows the path to the bin directory.

func (*CLI) ShowTmpDir added in v0.4.0

func (c *CLI) ShowTmpDir() error

ShowTmpDir shows the path to the tmp directory.

func (*CLI) StoreAccessToken

func (c *CLI) StoreAccessToken(token string) error

StoreAccessToken stores the GitHub access token.

type GetOptions added in v0.4.0

type GetOptions struct {
	ConfigPath   string
	IgnoreCache  bool
	IgnoreFilter bool
	Priority     int
	SelectApps   bool
}

GetOptions represents options for the CIL.

Jump to

Keyboard shortcuts

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