Skip to content

Commit

Permalink
fix: issueCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiJingLong committed May 22, 2023
1 parent 69b74a7 commit f5c8bc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/github_action_core/lib/src/command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import 'package:uuid/uuid.dart';

import 'utils.dart';

String _eol = Platform.isWindows ? '\r\n' : '\n';

String get eol => _eol;

/// Issues a command to the job step.
void issueCommand(
String command, Map<String, dynamic> properties, dynamic message) {
final cmd = Command(command, properties, message);
stdout.write('${cmd.toString()}${Platform.operatingSystem}');
stdout.write('$cmd$eol');
}

/// Issues a command with a given name and optional message.
Expand Down

0 comments on commit f5c8bc3

Please sign in to comment.