UNPKG

@xtail/ssh

Version:

X-Tail SSH 库,包含 SSH 连接服务器的类和工具方法等

12 lines (11 loc) 596 B
import { ResultType } from '@xtail/result'; import { SSHResultType } from '../types'; /** * 根据 SSH 结果对象生成 {@link ResultType} 结果对象 * * @param {SSHResultType} res SSH 结果对象 * @param {boolean} msgWithServer 在生成的 {@link ResultType} 结果对象的 message 字段中,是否包含服务器的 IP 或域名,默认值 true * @returns {ResultType} 生成的 {@link ResultType} 结果对象 */ export declare const genResultBySSHRes: (res: SSHResultType, msgWithServer?: boolean) => ResultType; export type GenResultBySSHResType = typeof genResultBySSHRes;