check

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 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.

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.

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 path:
    local:/tmp/a.txt
    l:/tmp/a.txt
    /tmp/a.txt
Remote path:
    remote:/tmp/a.txt
    r:/tmp/a.txt

Types

This section is empty.

Jump to

Keyboard shortcuts

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