File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ const PROJECT_PACKAGE_JSON: &str = r#"
2222 }
2323}"# ;
2424
25+ // scripts that read stdin, and write it to file 'events.json'
26+
27+ #[ cfg( windows) ]
28+ const EVENTS_EXECUTABLE : & str = r#"@echo off
29+ setlocal
30+ break >events.json
31+ for /F "tokens=*" %%line in ('more') do (
32+ echo %%line >>events.json
33+ )"# ;
34+
35+ #[ cfg( unix) ]
2536const EVENTS_EXECUTABLE : & str = r#"#!/bin/bash
2637# read Volta events from stdin, and write to events.json
2738# (but first clear it out)
Original file line number Diff line number Diff line change @@ -51,6 +51,17 @@ const PLATFORM_WITH_YARN: &str = r#"{
5151 "yarn": "1.7.71"
5252}"# ;
5353
54+ // scripts that read stdin, and write it to file 'events.json'
55+
56+ #[ cfg( windows) ]
57+ const EVENTS_EXECUTABLE : & str = r#"@echo off
58+ setlocal
59+ break >events.json
60+ for /F "tokens=*" %%line in ('more') do (
61+ echo %%line >>events.json
62+ )"# ;
63+
64+ #[ cfg( unix) ]
5465const EVENTS_EXECUTABLE : & str = r#"#!/bin/bash
5566# read Volta events from stdin, and write to events.json
5667# (but first clear it out)
You can’t perform that action at this time.
0 commit comments