docker-pilot
Version:
A powerful, scalable Docker CLI library for managing containerized applications of any size
59 lines • 1.63 kB
TypeScript
/**
* Status Command - Show status of services
*/
import { CommandResult, CommandOptions, CommandContext } from '../types';
import { BaseCommand } from './BaseCommand';
export declare class StatusCommand extends BaseCommand {
constructor(context: CommandContext);
execute(args: string[], _options: CommandOptions): Promise<CommandResult>; /**
* Get real status of services using docker compose ps
*/
private getServicesStatus; /**
* Fallback method using table format
*/
private getServicesStatusFallback;
/**
* Parse table output from docker compose ps
*/
private parseTableOutput;
/**
* Parse output from docker ps command
*/
private parseDockerPsOutput;
/**
* Parse service info from plain text line
*/
private parseServiceFromPlainText;
/**
* Normalize service state
*/
private normalizeState;
/**
* Extract health status from docker status
*/
private getHealthFromStatus;
/**
* Extract uptime from status string
*/
private extractUptime;
/**
* Execute Docker command with proper error handling
*/
private execDockerCommand;
protected showExamples(): void;
/**
* Show service status with real data
*/
private showServiceStatus;
/**
* Create a text summary of the status for interactive menu display
*/
private createStatusSummary;
/**
* Display individual service information
*/
private displayService;
private getStatusIcon;
private getHealthIcon;
}
//# sourceMappingURL=StatusCommand.d.ts.map