receive

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "receive",
	Short: "Receive file(s), or folder (see options with pdh receive -h)",
	Run: func(cmd *cobra.Command, args []string) {
		if len(args) < 1 {
			choice := tools.GetInput("Enter Share Code: ")
			if choice != "" {
				opt.ShareCode = choice
			}
		} else {
			opt.ShareCode = args[0]
		}
		if tools.IsEmpty(opt.ShareCode) {
			fmt.Println("no share code")
			return
		}
		rec := receiver.NewReceiver(opt)
		rec.Receive()
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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