git-stack-cli 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +14 -3
- package/package.json +1 -1
- package/scripts/release-brew.ts +7 -1
- package/src/app/Store.tsx +14 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -26287,10 +26287,21 @@ const BaseStore = createStore()(immer((set, get) => ({
|
|
|
26287
26287
|
if (!id) {
|
|
26288
26288
|
return;
|
|
26289
26289
|
}
|
|
26290
|
+
// set `withoutTimestamp` to skip <LogTimestamp> for all subsequent pending outputs
|
|
26291
|
+
// we only want to timestamp for the first part (when we initialize the [])
|
|
26292
|
+
// if we have many incremental outputs on the same line we do not want multiple timestamps
|
|
26293
|
+
//
|
|
26294
|
+
// await Promise.all([
|
|
26295
|
+
// cli(`for i in $(seq 1 5); do echo $i; sleep 1; done`),
|
|
26296
|
+
// cli(`for i in $(seq 5 1); do printf "$i "; sleep 1; done; echo`),
|
|
26297
|
+
// ]);
|
|
26298
|
+
//
|
|
26299
|
+
let withoutTimestamp = true;
|
|
26290
26300
|
if (!state.pending_output[id]) {
|
|
26301
|
+
withoutTimestamp = false;
|
|
26291
26302
|
state.pending_output[id] = [];
|
|
26292
26303
|
}
|
|
26293
|
-
const renderOutput = renderOutputArgs(args);
|
|
26304
|
+
const renderOutput = renderOutputArgs({ ...args, withoutTimestamp });
|
|
26294
26305
|
state.pending_output[id].push(renderOutput);
|
|
26295
26306
|
},
|
|
26296
26307
|
end_pending_output(state, id) {
|
|
@@ -26313,7 +26324,7 @@ function renderOutputArgs(args) {
|
|
|
26313
26324
|
}
|
|
26314
26325
|
if (args.debug) {
|
|
26315
26326
|
return (reactExports.createElement(reactExports.Fragment, null,
|
|
26316
|
-
reactExports.createElement(LogTimestamp, null),
|
|
26327
|
+
args.withoutTimestamp ? null : reactExports.createElement(LogTimestamp, null),
|
|
26317
26328
|
output));
|
|
26318
26329
|
}
|
|
26319
26330
|
return output;
|
|
@@ -34104,7 +34115,7 @@ async function command() {
|
|
|
34104
34115
|
.wrap(null)
|
|
34105
34116
|
// disallow unknown options
|
|
34106
34117
|
.strict()
|
|
34107
|
-
.version("1.0.
|
|
34118
|
+
.version("1.0.7" )
|
|
34108
34119
|
.showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`")
|
|
34109
34120
|
.help("help", "Show usage via `git stack help`").argv);
|
|
34110
34121
|
}
|
package/package.json
CHANGED
package/scripts/release-brew.ts
CHANGED
|
@@ -108,7 +108,13 @@ await spawn.sync(`git push`);
|
|
|
108
108
|
|
|
109
109
|
// commmit changes to main repo
|
|
110
110
|
process.chdir(PROJECT_DIR);
|
|
111
|
-
await spawn.sync(
|
|
111
|
+
await spawn.sync([
|
|
112
|
+
"git",
|
|
113
|
+
"commit",
|
|
114
|
+
"-a",
|
|
115
|
+
"-m",
|
|
116
|
+
`homebrew-git-stack ${version}`,
|
|
117
|
+
]);
|
|
112
118
|
await spawn.sync(`git push`);
|
|
113
119
|
|
|
114
120
|
console.debug();
|
package/src/app/Store.tsx
CHANGED
|
@@ -21,6 +21,7 @@ type MutateOutputArgs = {
|
|
|
21
21
|
node: React.ReactNode;
|
|
22
22
|
id?: string;
|
|
23
23
|
debug?: boolean;
|
|
24
|
+
withoutTimestamp?: boolean;
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export type State = {
|
|
@@ -194,11 +195,22 @@ const BaseStore = createStore<State>()(
|
|
|
194
195
|
return;
|
|
195
196
|
}
|
|
196
197
|
|
|
198
|
+
// set `withoutTimestamp` to skip <LogTimestamp> for all subsequent pending outputs
|
|
199
|
+
// we only want to timestamp for the first part (when we initialize the [])
|
|
200
|
+
// if we have many incremental outputs on the same line we do not want multiple timestamps
|
|
201
|
+
//
|
|
202
|
+
// await Promise.all([
|
|
203
|
+
// cli(`for i in $(seq 1 5); do echo $i; sleep 1; done`),
|
|
204
|
+
// cli(`for i in $(seq 5 1); do printf "$i "; sleep 1; done; echo`),
|
|
205
|
+
// ]);
|
|
206
|
+
//
|
|
207
|
+
let withoutTimestamp = true;
|
|
197
208
|
if (!state.pending_output[id]) {
|
|
209
|
+
withoutTimestamp = false;
|
|
198
210
|
state.pending_output[id] = [];
|
|
199
211
|
}
|
|
200
212
|
|
|
201
|
-
const renderOutput = renderOutputArgs(args);
|
|
213
|
+
const renderOutput = renderOutputArgs({ ...args, withoutTimestamp });
|
|
202
214
|
state.pending_output[id].push(renderOutput);
|
|
203
215
|
},
|
|
204
216
|
|
|
@@ -228,7 +240,7 @@ function renderOutputArgs(args: MutateOutputArgs) {
|
|
|
228
240
|
if (args.debug) {
|
|
229
241
|
return (
|
|
230
242
|
<React.Fragment>
|
|
231
|
-
<LogTimestamp />
|
|
243
|
+
{args.withoutTimestamp ? null : <LogTimestamp />}
|
|
232
244
|
{output}
|
|
233
245
|
</React.Fragment>
|
|
234
246
|
);
|