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: add version flag

+13 -3
+1 -1
package.json
··· 1 1 { 2 2 "name": "fid", 3 - "version": "0.0.0", 3 + "version": "0.0.1", 4 4 "description": "a network observatory for tangled — enumerate every knot, check their health, watch the federation", 5 5 "type": "module", 6 6 "bin": {
+12 -2
src/cli.ts
··· 1 1 #!/usr/bin/env node 2 + import { readFileSync } from "node:fs"; 2 3 import { parse } from "@bomb.sh/args"; 3 4 import { animateBanner } from "./banner.js"; 4 5 5 6 const args = parse(process.argv.slice(2), { 6 - boolean: ["json", "all", "fresh", "help"], 7 - alias: { h: "help" }, 7 + boolean: ["json", "all", "fresh", "help", "version"], 8 + alias: { h: "help", v: "version" }, 8 9 }); 9 10 10 11 const usage = `usage: ··· 12 13 --json machine-readable output 13 14 --all include localhost/dev junk knots 14 15 --fresh skip the 5-minute cache 16 + fid --version print the version 15 17 `; 18 + 19 + if (args.version) { 20 + const pkg = JSON.parse( 21 + readFileSync(new URL("../package.json", import.meta.url), "utf8"), 22 + ); 23 + console.log(`fid ${pkg.version}`); 24 + process.exit(0); 25 + } 16 26 17 27 const [command] = args._; 18 28 if (!args.json) await animateBanner(); // keep --json pipe-clean