cli-progress-bar-setup

Solid

Configure cli-progress with custom formatters, multi-bar support, and ETA calculations for CLI progress indication.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CLI Progress Bar Setup Configure cli-progress for advanced progress indication. ## Capabilities - Configure single and multi-bar progress - Create custom bar formatters - Set up ETA calculations - Implement payload data display - Create progress bar presets - Generate progress utilities ## Usage Invoke this skill when you need to: - Show download/upload progress - Display multi-task progress - Create custom progress formats - Implement ETA calculations ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | language | string | Yes | Target language | | format | string | No | Bar format template | | presets | array | No | Progress bar presets | ## Generated Patterns ### TypeScript Progress Utilities ```typescript import cliProgress, { SingleBar, MultiBar, Presets } from 'cli-progress'; import chalk from 'chalk'; // Custom format with colors const defaultFormat = chalk.cyan('{bar}') + ' {percentage}% | ETA: {eta}s | {value}/{total} | {filename}'; // Create single progress bar export function createProgressBar(options?: { format?: string; barSize?: number; }): SingleBar { return new SingleBar({ format: options?.format || defaultFormat, barCompleteChar: '\u2588', barIncompleteChar: '\u2591', barsize: options?.barSize || 40, hideCursor: true, clearOnComplete: false, stopOnComplete: true, }, Presets.shades_classic); } // Multi-bar for parallel tasks export function createMultiBar():...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills