package
0.0.0-20221009095420-d0e6ce96ca81
Repository: https://github.com/cnlubo/myssh.git
Documentation: pkg.go.dev
# Functions
ArgumentsCheck check arguments count correctness.
No description provided by the author
check connect string, format is [user@]host[:port].
No description provided by the author
clear screen.
compress string by regexp trim space or tab.
No description provided by the author
No description provided by the author
错误断言.
Execute executes shell commands with arguments.
No description provided by the author
No description provided by the author
GetKernelVersion returns the kernel version info.
GetNodeIP fetches node ip via command hostname.
GetOSName gets data in /etc/os-release and gets OS name.
GetUsername return current username.
No description provided by the author
IsEmpty check directory is or is not empty.
IsNumeric is_numeric() Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part.
No description provided by the author
No description provided by the author
New Session.
New Session and auto switch root user.
New Session and auto switch root user(support custom switch cmd delay).
ParseAbsPath return relative file path if filepath is absolute.
ParseConnect parse connect string, format is [user@]host[:port].
ParseOriginalFilePath return the original file path if file is a symbol link.
ParseRelPath return absolute file path if filepath is relative.
PathExist check file is or is not exist.
No description provided by the author
No description provided by the author
No description provided by the author
Query values contains keys.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SortKeys sort map keys.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
CheckSymbol is the code for check symbol.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CrossSymbol is the code for check symbol.
No description provided by the author
No description provided by the author
No description provided by the author
Message type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrAbort is the error returned when confirm prompts are supplied "n".
ErrEOF is the error returned from prompts when EOF is encountered.
ErrInterrupt is the error returned from prompts when an interrupt (ctrl-c) is encountered.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
VersionInfo holds information about the kernel.