cli_tools 0.1.0 copy "cli_tools: ^0.1.0" to clipboard
cli_tools: ^0.1.0 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,
    ),
  );
}
0
likes
160
pub points
66%
popularity

Publisher

verified publisherserverpod.dev

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

Homepage
Repository (GitHub)
View/report issues

Topics

#cli #tools #command-line #dart

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args, ci, http, path, pub_api_client, pub_semver, super_string

More

Packages that depend on cli_tools