cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version value is set by ldflags
	Version string
	// Name is cli command name
	Name = "golling"
)

Functions

func Execute

func Execute() int

Execute run golling process.

Types

type Progress

type Progress struct {
	// Total is total byte
	Total int64
	// Current is downloaded byte
	Current int64
}

Progress is download tarball prgoress

func NewProgress

func NewProgress(total int64) *Progress

func (*Progress) Finish

func (p *Progress) Finish()

func (*Progress) Show

func (p *Progress) Show()

func (*Progress) Write

func (p *Progress) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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