Skip to content

Commit

Permalink
v0.3.0 completed
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisyusub committed Oct 22, 2021
1 parent 6036160 commit c3812ec
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.3.0
- Structure changed.
- Help command provided.
- Welcome board added.
- Minor changes

## 0.2.1
- Example provided
- Minor changes
Expand Down
14 changes: 11 additions & 3 deletions lib/src/command/help_command.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import 'dart:io';

import 'i_command.dart';

class HelpCommand implements ICommand {
@override
Future<void> execute() {
// TODO: implement execute
throw UnimplementedError();
void execute() {
stdout.writeln('Usage: kanza_cli <command>\n');

stdout.writeln('Available commands:');
stdout.writeln(
'create Create folder and file structure for Fluter Apps',
);

exit(0);
}
}
4 changes: 3 additions & 1 deletion lib/src/command/i_command.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

abstract class ICommand {
Future<void> execute();
FutureOr<void> execute();
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: kanza_cli
description: A simple command-line application to generate simple folder and file structure for Flutter Applications
version: 0.2.1
version: 0.3.0
homepage: https://github.com/thisisyusub/kanza-cli

environment:
Expand Down

0 comments on commit c3812ec

Please sign in to comment.