Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Jan 10, 2025
1 parent 9e00209 commit 1a2998e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/puppy/bin/puppy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// BSD-style license that can be found in the LICENSE file.

import 'package:args/command_runner.dart';
import 'package:puppy/src/constants.dart';
import 'package:puppy/src/map_command.dart';

Future<void> main(List<String> args) async {
var runner = CommandRunner<void>(
'dgit', 'A dart implementation of distributed version control.')
var runner = CommandRunner<void>(cmdName, 'Dart repository management tools.')
..addCommand(MapCommand());

await runner.run(args);
Expand Down
1 change: 1 addition & 0 deletions pkgs/puppy/lib/src/constants.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const cmdName = 'puppy';
4 changes: 3 additions & 1 deletion pkgs/puppy/lib/src/map_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import 'package:args/command_runner.dart';
import 'package:build_cli_annotations/build_cli_annotations.dart';
import 'package:io/ansi.dart';

import 'constants.dart';

part 'map_command.g.dart';

class MapCommand extends _$MapArgsCommand<void> {
Expand Down Expand Up @@ -40,7 +42,7 @@ class MapArgs {
if (rest.isEmpty) {
throw UsageException(
'Missing command to invoke!',
'puppy map [--deep] <command to invoke>',
'$cmdName map [--deep] <command to invoke>',
);
}
}
Expand Down

0 comments on commit 1a2998e

Please sign in to comment.