retrieval: --car-export-merkle-proof flag for client retrieve
This commit is contained in:
parent
d019853687
commit
410ecb4bbc
@ -273,13 +273,17 @@ Examples:
|
|||||||
Flags: append([]cli.Flag{
|
Flags: append([]cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "car",
|
Name: "car",
|
||||||
Usage: "export to a car file instead of a regular file",
|
Usage: "Export to a car file instead of a regular file",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "data-selector",
|
Name: "data-selector",
|
||||||
Aliases: []string{"data-selector-selector"},
|
Aliases: []string{"datamodel-path-selector"},
|
||||||
Usage: "IPLD datamodel text-path selector, or IPLD json selector",
|
Usage: "IPLD datamodel text-path selector, or IPLD json selector",
|
||||||
},
|
},
|
||||||
|
&cli.BoolFlag{
|
||||||
|
Name: "car-export-merkle-proof",
|
||||||
|
Usage: "(requires --data-selector and --car) Export data-selector merkle proof",
|
||||||
|
},
|
||||||
}, retrFlagsCommon...),
|
}, retrFlagsCommon...),
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
if cctx.NArg() != 2 {
|
if cctx.NArg() != 2 {
|
||||||
@ -305,7 +309,7 @@ Examples:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if s != nil {
|
if s != nil {
|
||||||
eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s})
|
eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s, ExportMerkleProof: cctx.Bool("car-export-merkle-proof")})
|
||||||
}
|
}
|
||||||
|
|
||||||
err = fapi.ClientExport(ctx, *eref, lapi.FileRef{
|
err = fapi.ClientExport(ctx, *eref, lapi.FileRef{
|
||||||
|
Loading…
Reference in New Issue
Block a user