This directory contains user interface utilities for KSail's CLI.
Purpose
Provides UI components and utilities for enhancing the command-line user experience. This directory contains packages for visual elements, user notifications, and interface consistency across all KSail CLI commands.
Features
Visual Consistency: Standardized UI elements across all CLI commands
Colored Output: Terminal colors for better readability
Status Symbols: Visual indicators for different message types
ASCII Art: Visual branding and decorative elements
Packages
pkg/ui/asciiart/ - ASCII art and visual elements for CLI branding
pkg/ui/notify/ - User notification and messaging utilities with colored output
Usage
These packages are used internally by CLI commands to provide a consistent and user-friendly interface experience.
import (
"github.com/devantler-tech/ksail-go/pkg/ui/notify"
"github.com/devantler-tech/ksail-go/pkg/ui/asciiart"
)
// Provide user feedback
notify.Success("Operation completed successfully")
notify.Error("Operation failed")
// Display branding
asciiart.ShowLogo()