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 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
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
Click to show internal directories.
Click to hide internal directories.