cli_tools 0.0.1 copy "cli_tools: ^0.0.1" to clipboard
cli_tools: ^0.0.1 copied to clipboard

A collection of tools for building great command-line interfaces.

example/main.dart

import 'package:cli_tools/cli_tools.dart';

void main() async {
  /// Simple example of using the [StdOutLogger] class.
  var logger = StdOutLogger(LogLevel.info);

  logger.info('An info message');
  logger.error('An error message');
  logger.debug(
    'A debug message that will not be shown because log level is info',
  );
  await logger.progress(
    'A progress message',
    () async => Future.delayed(
      const Duration(seconds: 3),
      () => true,
    ),
  );
}