forked from TrueCloudLab/frostfs-node
[#1649] cli: Add option to print attributes in list-objects
Define `--with-attr` flag of `container list-objects` which makes the command to request and print user attributes for each object from the container. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e07921fc46
commit
2740bf7ee4
2 changed files with 53 additions and 6 deletions
|
@ -41,6 +41,7 @@ func Prepare(cmd *cobra.Command, cnr cid.ID, obj *oid.ID, key *ecdsa.PrivateKey,
|
|||
}
|
||||
|
||||
for i := range prms {
|
||||
tok := tok
|
||||
switch prms[i].(type) {
|
||||
case *internalclient.GetObjectPrm:
|
||||
tok.ForVerb(session.VerbObjectGet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue