-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add verbosity to the command line #112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the first of several PRs for this L3-138?
@n3op2 said this is a good place to start |
Am I right in thinking you mean add one for create? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we are getting there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once @n3op2 is happy I'm happy
Add a verbosity flag if you want to print all the information.
It's can be run like this
npm run local list -- --verbose
Without the verbose flag
{ id: 'process-1', version: 2, status: 'Enabled' }, { id: 'process-1', version: 1, status: 'Enabled' }, { id: 'test-program-propose', version: 1, status: 'Enabled' }, { id: 'process-2', version: 2, status: 'Enabled' }, { id: 'process-2', version: 1, status: 'Enabled' },
with verbose flag
id: 'process-1', version: 2, status: 'Enabled', program: [ { restriction: { senderHasInputRole: { index: 0, roleKey: 'Supplier' } } } ] }, { id: 'process-1', version: 1, status: 'Enabled', program: [ { restriction: { senderHasInputRole: { index: 0, roleKey: 'Supplier' } } } ] }, { id: 'test-program-propose', version: 1, status: 'Enabled', program: [ { restriction: { fixedNumberOfInputs: { numInputs: 2 } } }, { restriction: { fixedNumberOfOutputs: { numOutputs: 3 } } }, { op: 'And' }, { restriction: { fixedInputMetadataValue: { index: 0, metadataKey: '0x74797065', metadataValue: { literal: '0x44454d414e44' } } } }, { op: 'And' },
Todo in another PR: