app

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewReceiveCmd = &cobra.Command{
	Use:   "receive",
	Short: "Receive files/directories from remote",
	Long:  "Receive files/directories from remote",
	RunE: func(cmd *cobra.Command, args []string) error {
		err := tui.ValidateTranxAddress()

		if err != nil {
			return err
		}

		tui.HandleReceiveCommand(models.TranOptions{
			TranxAddress: constants.DEFAULT_ADDRESS,
			TranxPort:    constants.DEFAULT_PORT,
		}, args[0])

		return nil
	},
}
View Source
var NewSendCmd = &cobra.Command{
	Use:   "send",
	Short: "Send files/directories to remote",
	Long:  "Send files/directories to remote",
	RunE: func(cmd *cobra.Command, args []string) error {
		tools.RandomSeed()

		err := tui.ValidateTranxAddress()

		if err != nil {
			log.Fatal(err)
		}

		tui.HandleSendCommand(models.TranOptions{
			TranxAddress: constants.DEFAULT_ADDRESS,
			TranxPort:    constants.DEFAULT_PORT,
		}, args)

		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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