CLI presentation helpers
StatusLine, Banner, Section, Stage, HelpText. Library-only — no Symfony Console requirement. Drop into any Composer project to give CLI output the same look as the rest of the stack.
composer require sugarcraft/candy-kit
use SugarCraft\Kit\{StatusLine, Banner};
echo Banner::title('CandyApp', 'v0.1.0'), "\n\n";
echo StatusLine::info ('connecting to https://example.com'), "\n";
echo StatusLine::success('done in 0.4s'), "\n";
echo StatusLine::warn ('disk almost full'), "\n";
echo StatusLine::error ('connection refused'), "\n";
success / error / warn / info static helpers — glyph + message styled per the active theme.--version output.Sprinkles\Style objects keyed by status level. Theme::ansi() ships a sensible default.| Class | Method | Description |
|---|---|---|
| StatusLine | success(msg) | Print success message |
| StatusLine | error(msg) | Print error message |
| StatusLine | warn(msg) | Print warning message |
| StatusLine | info(msg) | Print info message |
| Banner | title(text, subtitle) | Create title banner |
| Section | new(heading, body) | Create section block |
| Stage | new() | Create step sequence |
| HelpText | new() | Create help text |
VHS-recorded GIFs of every example shipped with the library. Regenerated automatically on every push that touches the source.