cmd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cmd 命令行操作包。

AVMeta程序所有操作命令皆由此包定义,使用 cobra 第三方包编写。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

Executor 命令对象

func NewExecutor

func NewExecutor(version, commit, built string) *Executor

NewExecutor 返回一个被初始化的命令对象。

version 字符串参数,传入当前程序版本, commit 字符串参数,传入最后提交的 git commit, built 字符串参数,传入程序编译时间。

func (*Executor) Execute

func (e *Executor) Execute() error

Execute 执行根命令。

type NfoFile added in v1.0.2

type NfoFile struct {
	Path  string
	Video string
	Dir   string
}

NfoFile nfo文件列表结构

Jump to

Keyboard shortcuts

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