check

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTypeError

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

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

func EscapePath

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

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