decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
445 stars 133 forks source link

fix(cli): remove interactive prompting on CLI execute command #1347

Closed mirceanis closed 9 months ago

mirceanis commented 9 months ago

What issue is this PR fixing

fixes #1281

What is being changed

When calling veramo execute without parameters, the CLI will no longer offer a list of available methods based on oas-resolver.

Also, the execute command is now using Debug instead of console.log for logging, so that the console can be used for stdout and piping. Example: veramo execute -m didManagerFind -a '{}' | jq '.[0].did' to get the DID of the first identifier managed locally.

Quality

Check all that apply:

Details

The discussion in #1281 lead to the decision to remove this functionality from the CLI

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d5375bd) 89.83% compared to head (fcee4ae) 89.83%. Report is 1 commits behind head on next.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #1347 +/- ## ======================================= Coverage 89.83% 89.83% ======================================= Files 176 176 Lines 27292 27292 Branches 2166 2166 ======================================= Hits 24517 24517 Misses 2775 2775 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.