this repo has no description
0
fork

Configure Feed

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

goat: make fmt, and resolution mode for just the DID (#887)

authored by

bnewbold and committed by
GitHub
c1306148 82305ef0

+22 -4
+2 -2
cmd/goat/blob.go
··· 29 29 Usage: "directory to store blobs in", 30 30 }, 31 31 &cli.StringFlag{ 32 - Name: "pds-host", 33 - Usage: "URL of the PDS to export blobs from (overrides DID doc)", 32 + Name: "pds-host", 33 + Usage: "URL of the PDS to export blobs from (overrides DID doc)", 34 34 }, 35 35 }, 36 36 Action: runBlobExport,
+20 -2
cmd/goat/identity.go
··· 15 15 Name: "resolve", 16 16 Usage: "lookup identity metadata", 17 17 ArgsUsage: `<at-identifier>`, 18 - Flags: []cli.Flag{}, 19 - Action: runResolve, 18 + Flags: []cli.Flag{ 19 + &cli.BoolFlag{ 20 + Name: "did", 21 + Usage: "just resolve to DID", 22 + }, 23 + }, 24 + Action: runResolve, 20 25 } 21 26 22 27 func runResolve(cctx *cli.Context) error { ··· 33 38 dir := identity.BaseDirectory{} 34 39 var doc *identity.DIDDocument 35 40 41 + if cctx.Bool("did") { 42 + if atid.IsDID() { 43 + } 44 + } 45 + 36 46 if atid.IsDID() { 37 47 did, err := atid.AsDID() 38 48 if err != nil { 39 49 return err 40 50 } 51 + if cctx.Bool("did") { 52 + fmt.Println(did) 53 + return nil 54 + } 41 55 doc, err = dir.ResolveDID(ctx, did) 42 56 if err != nil { 43 57 return err ··· 50 64 did, err := dir.ResolveHandle(ctx, handle) 51 65 if err != nil { 52 66 return err 67 + } 68 + if cctx.Bool("did") { 69 + fmt.Println(did) 70 + return nil 53 71 } 54 72 doc, err = dir.ResolveDID(ctx, did) 55 73 if err != nil {