check

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTypeError added in v0.5.1

func CheckTypeError(isFromInRemote, isFromInLocal, isToRemote bool, countHosts int)

CheckTypeError validates from-remote, from-local, to-remote and host-counts. @brief

check type.

func EscapePath added in v0.5.1

func EscapePath(str string) (escapeStr string)

EscapePath escapes characters (`\`, `;`, ` `).

func ExistServer

func ExistServer(inputServer []string, nameList []string) bool

ExistServer returns true if inputServer exists in nameList. @brief

func ParseScpPath added in v0.5.1

func ParseScpPath(arg string) (isRemote bool, path string)

ParseScpPath parses remote or local path string. Path string has a `:` delimiter. A prefix of path string is a scp location. A scp location is `local (l)` or `remote (r)`.

arg examples:

local:/tmp/a.txt
l:/tmp/a.txt

remote:/tmp/a.txt
r:/tmp/a.txt

@brief:

parse lscp args path

Types

This section is empty.

Jump to

Keyboard shortcuts

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