the tangled network observatory ◈ every knot, its health, its version, in your terminal
tangled cli tui knot monitoring observability atproto federation
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: animate banner on help and error paths

+4 -5
+4 -5
src/cli.ts
··· 1 1 #!/usr/bin/env node 2 2 import { parse } from "@bomb.sh/args"; 3 - import { animateBanner, staticBanner } from "./banner.js"; 3 + import { animateBanner } from "./banner.js"; 4 4 5 5 const args = parse(process.argv.slice(2), { 6 6 boolean: ["json", "all", "fresh", "help"], 7 7 alias: { h: "help" }, 8 8 }); 9 9 10 - const usage = `${staticBanner} 11 - usage: 10 + const usage = `usage: 12 11 fid list every knot on the network 13 12 --json machine-readable output 14 13 --all include localhost/dev junk knots ··· 16 15 `; 17 16 18 17 const [command] = args._; 18 + if (!args.json) await animateBanner(); // keep --json pipe-clean 19 + 19 20 if (args.help || !command) { 20 21 console.log(usage); 21 22 process.exit(command ? 0 : 1); 22 23 } 23 - 24 - if (!args.json) await animateBanner(); // keep --json pipe-clean 25 24 26 25 switch (command) { 27 26 case "list":