cmd

package
v0.0.0-...-a99c618 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS> doc: https://pan.baidu.com/union/doc/pkuo3snyp

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const (
	ActionSync bdpan.SelectAction = iota
)

Variables

View Source
var (
	Log = bdpan.GetLogger()
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewDownloadCommand

func NewDownloadCommand(c *cobra.Command) *cli.DownloadCommand

Types

type BdpanCommand

type BdpanCommand struct {
	// 参数
	Path string
	// contains filtered or unexported fields
}

func (*BdpanCommand) Exec

func (r *BdpanCommand) Exec(args []string) error

type GlobalArg

type GlobalArg struct {
	IsVerbose bool
	AppId     string
}

type SyncAddCommand

type SyncAddCommand struct {
	Remote   string
	Local    string
	IsBackup bool // 是否为备份
	HasHide  bool //是否备份隐藏文件
}

func (SyncAddCommand) Run

func (s SyncAddCommand) Run() error

type SyncCommand

type SyncCommand struct {
	ID string

	IsCmdDel  bool
	IsCmdList bool
}

func (SyncCommand) Run

func (s SyncCommand) Run() error

type SyncExecCommand

type SyncExecCommand struct {
	*SyncCommand
	// contains filtered or unexported fields
}

func (SyncExecCommand) Run

func (s SyncExecCommand) Run() error

type UploadCommand

type UploadCommand struct {
	From          string
	To            string
	IsSync        bool
	IsRecursion   bool // 是否递归子文件夹文件
	IsIncludeHide bool // 是否上传隐藏文件
	// contains filtered or unexported fields
}

func NewUploadCommand

func NewUploadCommand(c *cobra.Command) *UploadCommand

func (UploadCommand) Run

func (u UploadCommand) Run() error

Jump to

Keyboard shortcuts

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