PackageTrack
Sign in Get early access

capp

This tool is perfect for creating console apps, offering widgets for Console elements, input handling, Help generation, argument events, and option configuration

2.1.0 17K downloads/mo #2358 most downloaded on pub.dev uproid/capp

What this package is like to depend on

Last release 22 days ago

01 Aug 2026

Release timing varies

gaps range from 8 days to 7 months

Nearly every release is documented

notes for 13 of 13 stable releases

2 versions withdrawn

withdrawn after publishing

2 years old

15 releases · first in 2024

8 releases in the last 12 months

see the full history below

Release timeline

15 releases · Oct 2024 to Aug 2026
2025 2026
Release Pre-release Withdrawn

Releases

latest 15
  1. 2.1.0 01 Aug 2026
    Release notes
    • writeHelpModern now groups namespaced sub-commands: a controller named namespace:subcommand (e.g. test:subtest, called exactly as test:subtest -i=5) is displayed nested under its namespace header instead of being listed as an unrelated top-level command. The command name and its description are now printed on the same line (name in bold green, description in yellow) instead of on two separate lines.
    • Added example/example_app.dart entries (test:subtest, test:report) demonstrating namespaced sub-commands.
    • Added CappConsole.writeAlert to print a message as a boxed, colored alert (info/success/warning/error) with a severity icon, wrapping long messages to fit the terminal width.
    • Added example/example.dart "Alert" option and tests demonstrating writeAlert.
    Open source →
  2. 2.0.0 31 Jul 2026
    Release notes
    • #3 Added command chaining: pass --and between commands (e.g. test -p hello --and help --and exit) to run several commands, one after another, in a single invocation. Works for the initial CLI arguments as well as for lines typed at the interactive prompt (both line mode and raw mode). Before each next command runs, a Next command: ... message is printed. --and is only used as a separator, it's never forwarded to controllers/options and never appears in the generated help.
    • Added example/example_chain.dart demonstrating the new command chaining feature.
    • Added a GitHub Actions workflow to run the test suite on every push/PR.
    • Greatly expanded the test suite: unit tests for CappManager, CappConsole, and CappOption, plus integration tests that spawn the example apps to verify one-shot argument processing, interactive stdin sessions, and command chaining end-to-end.
    Open source →
  3. 1.1.8 12 Apr 2026
    Release notes
    • Added command history tracking to CappManager, allowing navigation through previously entered commands using arrow keys
    • Added onKeyPress callback to CappManager for handling raw mode key events, enabling custom key bindings
    • Added dynamic appLabel parameter to processWhile (replaces deprecated promptLabel), allowing prompt labels that update on each iteration (e.g., showing current time)
    • Added removeCommandBar and addToCommandBar static methods to CappConsole for manipulating the command bar text in raw mode
    • Added eventListen method to CappConsole for stdin event listening
    • Updated example_app.dart to demonstrate command history navigation and dynamic prompt labels
    Open source →
  4. 1.1.7 10 Apr 2026
    Release notes
    • Added resetValue method to CappOption to reset the option's value to its default value and set existsInArgs to false. This allows for easier reuse of options across multiple command executions without retaining previous values, ensuring that each command starts with a clean slate for its options. The resetValue method is called in the CappManager before processing each command to ensure that options are reset before being populated with new values from the command arguments.
    Open source →
  5. 1.1.6 02 Apr 2026
    Release notes
    • Added onSelect callback to CappOption to allow executing a function when an option is selected, even if it doesn't have a command associated with it. This is useful for options that are meant to trigger an action without requiring additional input, such as displaying help or toggling a setting.
    Open source →
  6. 1.1.5 02 Apr 2026 withdrawn
    Release notes

    Full Changelog: 1.1.4...1.1.5

    Open source →
  7. 1.1.4 19 Mar 2026
    Release notes
    • Added _readKey method to handle key inputs
    • Supported arguments with = in the _findOptionValue method, allowing options to be passed as --option=value or -o=value
    • Added writeHelpModern method to display help in a more modern and colorful way using ANSI escape codes
    • Supported breaking the loop in processWhile by pressing the 'q' key, allowing users to exit the command processing loop gracefully while still receiving new commands
    Open source →
  8. 1.1.3 19 Mar 2026 withdrawn

    Nothing published for this version

  9. 1.1.2 26 Aug 2025
    Release notes
    • Added processWhile to keep the app running while receiving new commands, check example_app.dart
    Open source →
  10. 1.1.1 23 Jun 2025
    Release notes
    • Fixes #1 warning color
    Open source →
  11. 1.1.0 27 Dec 2024
    Release notes
    • Added Json View
    • Added Menu View
    • Added Multi Choice View
    Open source →
  12. 1.0.3 06 Dec 2024
    Release notes
    • Fixed bug
    Open source →
  13. 1.0.2 24 Nov 2024
    Release notes
    • Added Progress timer
    Open source →
  14. 1.0.1 29 Oct 2024
    Release notes
    • Fixed bug
    • Added documentation
    • Added example
    Open source →
  15. 1.0.0 28 Oct 2024
    Release notes
    • Deploy Capp package to pub
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive