mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
Merge pull request #2582 from ipfs/feature/refs-defaults
Added default values to refs
This commit is contained in:
@ -50,9 +50,9 @@ Note: List all references recursively by using the flag '-r'.
|
|||||||
},
|
},
|
||||||
Options: []cmds.Option{
|
Options: []cmds.Option{
|
||||||
cmds.StringOption("format", "Emit edges with given format. Available tokens: <src> <dst> <linkname>."),
|
cmds.StringOption("format", "Emit edges with given format. Available tokens: <src> <dst> <linkname>."),
|
||||||
cmds.BoolOption("edges", "e", "Emit edge format: `<from> -> <to>`."),
|
cmds.BoolOption("edges", "e", "Emit edge format: `<from> -> <to>`.").Default(false),
|
||||||
cmds.BoolOption("unique", "u", "Omit duplicate refs from output."),
|
cmds.BoolOption("unique", "u", "Omit duplicate refs from output.").Default(false),
|
||||||
cmds.BoolOption("recursive", "r", "Recursively list links of child nodes."),
|
cmds.BoolOption("recursive", "r", "Recursively list links of child nodes.").Default(false),
|
||||||
},
|
},
|
||||||
Run: func(req cmds.Request, res cmds.Response) {
|
Run: func(req cmds.Request, res cmds.Response) {
|
||||||
ctx := req.Context()
|
ctx := req.Context()
|
||||||
|
Reference in New Issue
Block a user