better_command_runner library

Classes

BetterCommand
BetterCommandRunner
A custom implementation of CommandRunner with additional features.
BetterCommandRunnerAnalyticsEvents
Constants for the command runner analytics events.
BetterCommandRunnerFlags
Constants for the command runner flags.

Enums

CommandRunnerLogLevel
An enum for the command runner log levels.
ExitCodeType

Typedefs

OnAnalyticsEvent = void Function(String event)
A function type for tracking events.
OnBeforeRunCommand = Future<void> Function(BetterCommandRunner runner)
A function type for executing code before running a command.
PassMessage = void Function(String message)
A function type for passing log messages.
SetLogLevel = void Function({String? commandName, required CommandRunnerLogLevel parsedLogLevel})
A function type for setting the log level. The logLevel is the log level to set. The commandName is the name of the command if custom rules for log levels are needed.

Exceptions / Errors

ExitException
An exception that can be thrown to exit the command with a specific exit