You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, write patches to an output file (#214)
* By default, write patches to an output file
If -o filename is given, write to filename.
If no -o filename is given and stdout is not a pipe, write to patches.json.
If no -o filename is given and stdout is a pipe, write to pipe.
* Simplify pipe rules
Read and execute an action definition from standard input:
84
89
85
90
$ cat ~/my-action.json | src actions exec -f -
@@ -137,6 +142,7 @@ Format of the action JSON files:
137
142
138
143
var (
139
144
fileFlag=flagSet.String("f", "-", "The action file. If not given or '-' standard input is used. (Required)")
145
+
outputFlag=flagSet.String("o", "patches.json", "The output file. Will be used as the destination for patches unless the command is being piped in which case patches are piped to stdout")
140
146
parallelismFlag=flagSet.Int("j", runtime.GOMAXPROCS(0), "The number of parallel jobs.")
141
147
142
148
cacheDirFlag=flagSet.String("cache", displayUserCacheDir, "Directory for caching results.")
@@ -184,6 +190,28 @@ Format of the action JSON files:
0 commit comments