Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add format process on generate command #46

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/src/commands/generate/generate_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ class GenerateCommand extends Command {
@override
Future<void> run() async {
try {
final workingDirectory = argResults!.rest.first;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually in this case, this won't work because there is no path supplied to the generate command.

Please turn your original request into an issue and I'll see if we can get to it next week. We'll be spending some time working through Stacked issues next week and the week after.


await _processService.runBuildRunner(
shouldDeleteConflictingOutputs: argResults?[ksDeleteConflictOutputs],
shouldWatch: argResults?[ksWatch],
);
await _analyticsService.generateCodeEvent(
arguments: argResults!.arguments,
);
await _processService.runFormat(appName: workingDirectory);
} catch (e, s) {
_log.error(message: e.toString());
unawaited(_analyticsService.logExceptionEvent(
Expand Down