cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 23 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> 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>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const (
	ActionSync bdpan.SelectAction = iota
)

Variables

View Source
var ErrQuit = errors.New("quit bdpan")
View Source
var (
	Log = bdpan.GetLogger()
)
View Source
var Version = "0.0.3"

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 GetGlobalReq() *dto.GlobalReq

func GetRootCmd added in v0.0.3

func GetRootCmd() *cobra.Command

func InitDownloadReq

func InitDownloadReq(c *cobra.Command, req *dto.DownloadReq)

Types

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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