What problem does it solve?
This Skill addresses the need for standardized, human-readable, and machine-readable output in the Veryfront Code CLI, ensuring a consistent user experience across different terminal environments.
Core Features & Use Cases
- Standardized Output: Provides a set of helper functions to generate success, error, info, and warning messages with consistent formatting.
- Machine-Readable Output: Allows for JSON output via the
--json flag for scripting and automation purposes.
- Error Handling: Includes guidelines for empathetic and actionable error messages, improving user experience.
- Exit Codes: Defines clear exit codes for different scenarios, aiding in automated error handling.
- Use Case: A developer can use this Skill to create a CLI tool that provides clear, informative feedback to users, enhancing the overall usability of the tool.
Quick Start
To display a success message, use the following command:
console.log(" " + success("✓") + " Operation completed successfully")