dashpub_cli 0.0.2
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);
}
}