this repo has no description
0
fork

Configure Feed

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

Add PDS host argument to blob export (#884)

This PR introduces the `--pds-host` argument to the `blob export`
command chain.

This was needed in order to export the blobs from an old PDS when by DID
document was pointing to the new one already.

authored by

bnewbold and committed by
GitHub
7e16f332 17593f7f

+10 -1
+10 -1
cmd/goat/blob.go
··· 28 28 Aliases: []string{"o"}, 29 29 Usage: "directory to store blobs in", 30 30 }, 31 + &cli.StringFlag{ 32 + Name: "pds-host", 33 + Usage: "URL of the PDS to export blobs from (overrides DID doc)", 34 + }, 31 35 }, 32 36 Action: runBlobExport, 33 37 }, ··· 73 77 return err 74 78 } 75 79 80 + pdsHost := cctx.String("pds-host") 81 + if pdsHost == "" { 82 + pdsHost = ident.PDSEndpoint() 83 + } 84 + 76 85 // create a new API client to connect to the account's PDS 77 86 xrpcc := xrpc.Client{ 78 - Host: ident.PDSEndpoint(), 87 + Host: pdsHost, 79 88 } 80 89 if xrpcc.Host == "" { 81 90 return fmt.Errorf("no PDS endpoint for identity")