A fast, local-first "redirection engine" for !bang users with a few extra features ^-^

chore: don't log progress in not interactive terminals

Changed files
+5 -5
.github
workflows
src
+1 -1
.github/workflows/test-bangs.yaml
···
- name: Install bun
uses: oven-sh/setup-bun@v1
-
- name: 🥔 hash
run: bun run check
- name: Commit changes
···
- name: Install bun
uses: oven-sh/setup-bun@v1
+
- name: 👀 Check bangs
run: bun run check
- name: Commit changes
+4 -4
src/bangs/test-bangs.ts
···
try {
process.stdout.clearLine(0);
process.stdout.cursorTo(0);
} catch (err) {
process.stdout.write("\r");
}
-
process.stdout.write(
-
`${spinChars[spinIdx]} Completed ${completedBangs}/${bangEntries.length} bangs (${bangsPerSecond}/s)`,
-
);
-
spinIdx = (spinIdx + 1) % spinChars.length;
}, 500);
const workers = chunks.map((chunk) => {
···
try {
process.stdout.clearLine(0);
process.stdout.cursorTo(0);
+
process.stdout.write(
+
`${spinChars[spinIdx]} Completed ${completedBangs}/${bangEntries.length} bangs (${bangsPerSecond}/s)`,
+
);
+
spinIdx = (spinIdx + 1) % spinChars.length;
} catch (err) {
process.stdout.write("\r");
}
}, 500);
const workers = chunks.map((chunk) => {