ora-spinner-integration

Solid

Integrate ora spinners with consistent styling, promise handling, and status updates for CLI progress feedback.

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

# Ora Spinner Integration Integrate ora spinners for consistent CLI progress feedback. ## Capabilities - Configure ora spinner styling - Create promise-based spinners - Set up spinner sequences - Implement status transitions - Create custom spinner types - Generate spinner utilities ## Usage Invoke this skill when you need to: - Add loading indicators to CLI - Show progress during async operations - Create consistent spinner styling - Implement status transitions ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | language | string | Yes | Target language (typescript, javascript) | | style | object | No | Spinner styling options | | spinners | array | No | Custom spinner definitions | ## Generated Patterns ### TypeScript Spinner Utilities ```typescript import ora, { Ora, Options } from 'ora'; import chalk from 'chalk'; // Spinner configuration const defaultOptions: Options = { color: 'cyan', spinner: 'dots', prefixText: '', }; // Create spinner with consistent styling export function createSpinner(text: string, options?: Partial<Options>): Ora { return ora({ ...defaultOptions, ...options, text, }); } // Spinner with promise export async function withSpinner<T>( text: string, fn: () => Promise<T>, options?: { successText?: string | ((result: T) => string); failText?: string | ((error: Error) => string); } ): Promise<T> { const spinner = createSpinner(text); spinner.start(...

Details

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

Related Skills