UNPKG

hivessh

Version:

HiveSsh is an innovative library designed to streamline SSH2 connections and simplify task execution on Linux servers.

54 lines 1.46 kB
import { SshHost } from "../SshHost.js"; import { Awaitable } from "../utils/base.js"; /** * @deprecated The AbstractPackageManager (APM) feature will be removed in the future to more focus on the core problems and solutions */ export interface AbstractPackageManager { type: string; sshHost: SshHost; /** * @description Update package source cache */ updateCache(): Awaitable<void>; /** * @description Clear package source cache */ clearCache(): Awaitable<void>; /** * @description Install defined packages */ install(...pkgs: string[]): Awaitable<void>; /** * @description Uninstall defined packages */ uninstall(...pkgs: string[]): Awaitable<void>; /** * @description Upgrades all upgradable packages */ upgradeAll(): Awaitable<void>; /** * @description Uninstall unused packages */ uninstallUnused(): Awaitable<void>; /** * @description List of installed packages */ list(): Awaitable<string[]>; /** * @description List upgradable packages */ upgradable(): Awaitable<string[]>; /** * @description Returns a package description */ describe(pkg: string): Awaitable<AbstractPackage>; } export interface AbstractPackage { name: string; version: string; description?: string; fields: { [key: string]: string; }; } //# sourceMappingURL=ApmInterface.d.ts.map