Skip to content

Commit

Permalink
fix: write shorebird command to top of log file (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman authored Oct 22, 2024
1 parent ca086e7 commit 9d03a5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/shorebird_cli/bin/shorebird.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ Future<void> main(List<String> args) async {
values: {shorebirdEnvRef},
);

// Write the current command to the top of the log file.
currentRunLogFile.writeAsStringSync(
'''
Command: shorebird ${args.join(' ')}
''',
mode: FileMode.append,
);

await IOOverrides.runZoned(
() async => _flushThenExit(
await runScoped(
Expand Down

0 comments on commit 9d03a5c

Please sign in to comment.