publican 0.2.0 copy "publican: ^0.2.0" to clipboard
publican: ^0.2.0 copied to clipboard

The package that will help you out with Dart's Pub with things like project initialization and dependency declarations.

example/publican.dart

import 'dart:async';
import 'dart:io';

import 'package:args/command_runner.dart';
import 'package:publican/publican.dart';

Future<void> main() async {
  final File pubspec = new File('pubspec.yaml');

  final CommandRunner runner =
      new CommandRunner('publican_example', 'Publican example')
        ..addCommand(new InitCommand(pubspec))
        ..addCommand(new AddCommand(pubspec));

  await runner.run(['init']);
}
0
likes
40
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

The package that will help you out with Dart's Pub with things like project initialization and dependency declarations.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

args, http

More

Packages that depend on publican