kubo/core
Hector Sanjuan 7798ad46aa core/commands/dag/stat: improve output
`ipfs dag stat -h` says:

```
USAGE
  ipfs dag stat <root>... - Gets stats for a DAG.

  ipfs dag stat [--progress=false] [--] <root>...
```

but `--progress` defaults to `true`.

So by default it prints this :

```
ipfs dag stat -progress=true QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ
CID: QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ, Size: 95, NumBlocks: 1
CID: QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ, Size: 202, NumBlocks: 2
CID: QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ, Size: 8912, NumBlocks: 3
CID: QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ, Size: 271056, NumBlocks: 4
CID: QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ, Size: 533200, NumBlocks: 5
...

<actual dag stat summary>.
```

I find this confusing. Is this intended? This PR switches to:

```
ipfs dag stat QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ
CID: QmUWfSKRTZGTHuYhV4kBTrS8fJEV2GPzeXcdhxUGPuYTnJ, Size: 95, NumBlocks: -1
CID: QmaCxzMg6FZRkDi61q4ymWcCvoj6GkuBo5mVszi5DHBpb1, Size: 107, NumBlocks: -1
CID: QmUf2ynPG2wCJe3zLaASNJrQKN3BkboD2VRAKcwteDAUQB, Size: 8710, NumBlocks: -1
CID: bafkreibspggfqizukzodgaivbqusjz2xugesiaf3cutlf5rayzkfawhyry, Size: 262144, NumBlocks: -1
CID: bafkreicagz2co2ryds5auotj5kgwbqt7mvfzua4o54fv24rbycodytnmuu, Size: 262144, NumBlocks: -1
...

<actual summary>
```

which means it lists the nodes that are traversed as it makes progress traversing the DAG.
2025-09-24 11:45:42 +02:00
..
commands core/commands/dag/stat: improve output 2025-09-24 11:45:42 +02:00
coreapi refactor(config): migration 17-to-18 to unify Provider/Reprovider into Provide.DHT (#10951) 2025-09-18 22:17:43 +02:00
corehttp feat: ipfs-webui v4.9.0 with retrieval diagnostics (#10969) 2025-09-19 04:16:21 +02:00
coreiface fix: ipfs pin ls <cid> --names (#10970) 2025-09-19 03:17:45 +02:00
corerepo chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
coreunix fix: resolve TestAddMultipleGCLive race condition (#10916) 2025-08-18 20:49:26 +02:00
mock fix: deadlock on retrieving WebTransport addresses (#9857) 2023-05-08 16:11:03 +02:00
node fix: SweepingProvider shouldn't error when missing DHT (#10975) 2025-09-19 19:59:46 +02:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
builder.go chore: migrate bootstrap to ipfs/boxo (#10158) 2023-10-31 18:25:14 +01:00
core_test.go chore: update boxo, go-libp2p, and internalize mplex (#10095) 2023-08-24 06:11:02 +00:00
core.go refactor(config): migration 17-to-18 to unify Provider/Reprovider into Provide.DHT (#10951) 2025-09-18 22:17:43 +02:00