cmd

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GITIGNORE = ".gitignore"
)

Variables

View Source
var (
	GitUser     string
	GitPassword string
	GitRemote   string
)

Persistent flags

View Source
var ErrRepoUpdated = errors.New("already up-to-date")
View Source
var PythonCmd string
View Source
var Verbose bool

Functions

func BytesToNumber added in v1.0.9

func BytesToNumber[T any](bys []byte) (data T)

func CurrentTagVersion added in v1.0.8

func CurrentTagVersion(tag bool) (str string)

func DetermineDecode added in v1.0.9

func DetermineDecode(s []byte) ([]byte, string)

func Execute

func Execute()

func GetAuth added in v1.0.3

func GetAuth(remote string) (gitAuth *http.BasicAuth)

Fix github remote = github, if your repo has multiple branches

func PathWithoutExt added in v1.0.9

func PathWithoutExt(path string) string

Types

type Music163 added in v1.0.9

type Music163 struct {
	MusicID       int             `json:"musicId"`
	MusicName     string          `json:"musicName"`
	Artist        [][]interface{} `json:"artist"`
	AlbumID       int             `json:"albumId"`
	Album         string          `json:"album"`
	AlbumPicDocID string          `json:"albumPicDocId"`
	AlbumPic      string          `json:"albumPic"`
	Bitrate       int             `json:"bitrate"`
	Mp3DocID      string          `json:"mp3DocId"`
	Duration      int             `json:"duration"`
	MvID          int             `json:"mvId"`
	Alias         []interface{}   `json:"alias"`
	TransNames    []string        `json:"transNames"`
	Format        string          `json:"format"`
}

Jump to

Keyboard shortcuts

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