dashpub_cli 0.0.2 copy "dashpub_cli: ^0.0.2" to clipboard
dashpub_cli: ^0.0.2 copied to clipboard

Official command-line companion tool for Dashpub. Dashpub is a private registry for Dart packages.

example/dashpub_cli_example.dart

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

void main(List<String> args) async {
  // This example demonstrates how the Dashpub CLI commands are structured
  // and how they can be added to a CommandRunner.

  final runner = CommandRunner('dashpub', 'The Dashpub CLI tool.')
    ..addCommand(LoginCommand())
    ..addCommand(PublishCommand())
    ..addCommand(TokenCommand());

  try {
    // In a real scenario, you would pass arguments here.
    // For demonstration, we just print the usage.
    print(runner.usage);
  } catch (e) {
    print(e);
  }
}
1
likes
160
points
150
downloads

Publisher

verified publishercanus.dev

Weekly Downloads

Official command-line companion tool for Dashpub. Dashpub is a private registry for Dart packages.

Repository (GitHub)
View/report issues
Contributing

Topics

#cli #pub #tool #dashpub

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

archive, args, dashpub_api, glob, http, path, yaml

More

Packages that depend on dashpub_cli