Skip to content

Commit

Permalink
update: change command name from chain to chain_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
venbrinoDev committed Mar 3, 2024
1 parent e09562d commit eccdb65
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Copyright 2024 Precious The App Guy
2 changes: 1 addition & 1 deletion bin/chain_install.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import 'package:chain/chain.dart' as chain;
import 'package:chain_cli/chain_cli.dart' as chain;

void main(List<String> args) => chain.start(args);
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/src/chain_base.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:args/command_runner.dart';
import 'package:chain/src/commands/seed.dart';
import 'package:chain/src/commands/verify.dart';
import 'package:chain_cli/src/commands/seed.dart';
import 'package:chain_cli/src/commands/verify.dart';

///Start the cli tool
void start(List<String> args) {
final runner = CommandRunner('chain', 'Manage and generate seed pharse')
final runner = CommandRunner('chain_cli', 'Manage and generate seed pharse')
..addCommand(GenerateSeedPharse())
..addCommand(VerifySeedPhrase());
runner.run(args);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/commands/verify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class VerifySeedPhrase extends Command {
@override
void run() {
if (argResults == null) {
print(exists('Try running chain -h'));
print(exists('Try running chain_cli -h'));
exit(1);
}

Expand Down
8 changes: 5 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: chain
name: chain_cli
description: Used to manage and generate seed pharse
version: 1.0.0
# repository: https://github.com/my_org/my_repo
repository: https://github.com/venbrinoDev/chain_cli.git
homepage: https://github.com/venbrinoDev/chain_cli
issue_tracker: https://github.com/venbrinoDev/chain_cli/issues

environment:
sdk: ^3.2.6
Expand All @@ -17,4 +19,4 @@ dev_dependencies:
test: ^1.24.0

executables:
chain: chain_install
chain_cli: chain_install

0 comments on commit eccdb65

Please sign in to comment.