verifiablesoftware / vsw

Core project of VerifiableSoftware
Apache License 2.0
1 stars 0 forks source link

vsw list : more consistent display mode #84

Closed wenjing closed 3 years ago

wenjing commented 3 years ago

Here are some variation of vsw list command outputs. I think the JSON format is better. No need for ASCII formatting. So let's standardize on simply outputting JSON.

root@f6fdf91d9796:/# vsw list Usage: vsw list -c: list all the connections -w: list all wallet dids -sc: list all the schema -s: see agent status -i: list all the issue credential records -p: list all present proof records -cs: list all the credentials -cd: list all the credential definitions root@f6fdf91d9796:/# vsw list -c +Connection Records----+---------------+------------+-------+ | their_label | my_did | connection_id | created_at | state | +-------------+--------+---------------+------------+-------+ root@f6fdf91d9796:/# root@f6fdf91d9796:/# vsw list -w +Wallet Records-------------------+----------------------------------------------+ | public | did | verkey | +--------+------------------------+----------------------------------------------+ | True | 5QPk5moBBWiqvGaGe4QYfr | 3QCT15zwe1AuXtekGCBqLWWcmqZqRrxvq6urk7bCAs4R | +--------+------------------------+----------------------------------------------+ root@f6fdf91d9796:/# root@f6fdf91d9796:/# root@f6fdf91d9796:/# vsw list -s [18:22:35] { list.py:94 'version': '0.0.2',
'label': 'vsw-agent',
'conductor': {
'in_sessions': 0,
'out_encode': 0,
'out_deliver': 0,
'task_active': 1,
'task_done': 2,
'task_failed': 0,
'task_pending': 0
}
}
root@f6fdf91d9796:/# vsw list -i [18:22:51] {'results': []} list.py:87 root@f6fdf91d9796:/# root@f6fdf91d9796:/# vsw list -p [18:57:27] {'results': []} list.py:115 root@f6fdf91d9796:/# vsw list -sc {'schema_ids': []} root@f6fdf91d9796:/# vsw list -cs [18:57:52] {'results': []} list.py:80 root@f6fdf91d9796:/# vsw list -cd {'credential_definition_ids': []} root@f6fdf91d9796:/#

wenjing commented 3 years ago

Done