@@ -138,7 +138,7 @@ collected if needed. (By default, recursively. Use -r=false for direct pins)
...
@@ -138,7 +138,7 @@ collected if needed. (By default, recursively. Use -r=false for direct pins)
}
}
buf:=new(bytes.Buffer)
buf:=new(bytes.Buffer)
for_,k:=rangeadded.Pinned{
for_,k:=rangeadded.Pins{
fmt.Fprintf(buf,"unpinned %s\n",k)
fmt.Fprintf(buf,"unpinned %s\n",k)
}
}
returnbuf,nil
returnbuf,nil
...
@@ -187,7 +187,7 @@ Example:
...
@@ -187,7 +187,7 @@ Example:
cmds.StringArg("ipfs-path",false,true,"Path to object(s) to be listed."),
cmds.StringArg("ipfs-path",false,true,"Path to object(s) to be listed."),
},
},
Options:[]cmds.Option{
Options:[]cmds.Option{
cmds.StringOption("type","t","The type of pinned keys to list. Can be \"direct\", \"indirect\", \"recursive\", or \"all\". Defaults to \"recursive\"."),
cmds.StringOption("type","t","The type of pinned keys to list. Can be \"direct\", \"indirect\", \"recursive\", or \"all\".").Default("all"),
cmds.BoolOption("count","n","Show refcount when listing indirect pins."),
cmds.BoolOption("count","n","Show refcount when listing indirect pins."),
cmds.BoolOption("quiet","q","Write just hashes of objects."),
cmds.BoolOption("quiet","q","Write just hashes of objects."),