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> doc: https://pan.baidu.com/union/doc/pkuo3snyp
Copyright © 2023 NAME HERE <EMAIL ADDRESS> doc: https://pan.baidu.com/union/doc/pkuo3snyp
Copyright © 2023 NAME HERE <EMAIL ADDRESS> doc: https://pan.baidu.com/union/doc/pkuo3snyp
Copyright © 2023 NAME HERE <EMAIL ADDRESS> doc:
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 ¶
const (
ActionSync bdpan.SelectAction = iota
)
Variables ¶
var ErrQuit = errors.New("quit bdpan")
var (
Log = bdpan.GetLogger()
)
var Version = "0.0.5"
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 GetFileHandler ¶ added in v0.0.3
func GetFileHandler() *handler.FileHandler
func GetGlobalReq ¶
func GetRootCmd ¶ added in v0.0.3
Types ¶
type SyncAddCommand ¶
type SyncAddCommand struct {
Remote string
Local string
IsBackup bool // 是否为备份
HasHide bool //是否备份隐藏文件
}
func (SyncAddCommand) Run ¶
func (s SyncAddCommand) Run() error
type SyncCommand ¶
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