-
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
945d42b
commit d67f04d
Showing
9 changed files
with
659 additions
and
999 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.2.5 | ||
|
||
- Adds the new Generate command | ||
|
||
## 0.2.4 | ||
|
||
- promotes the package to stable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/stacked_tools/stacked_cli/example/test/helpers/test_helpers.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/stacked_tools/stacked_cli/lib/src/commands/generate/generate_command.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:args/command_runner.dart'; | ||
import 'package:stacked_tools/src/locator.dart'; | ||
import 'package:stacked_tools/src/services/process_service.dart'; | ||
|
||
class GenerateCommand extends Command { | ||
final _processService = locator<ProcessService>(); | ||
|
||
@override | ||
String get description => | ||
'''Generates the code for the stacked application if any changes were made'''; | ||
|
||
@override | ||
String get name => 'generate'; | ||
|
||
@override | ||
Future<void> run() async { | ||
await _processService.runBuildRunner(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.