Skip to content
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

Feat/cli json output #1346

Merged
merged 33 commits into from
Aug 31, 2022
Merged

Feat/cli json output #1346

merged 33 commits into from
Aug 31, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Aug 29, 2022

Did you run make format && make check?
yes

Fixes #

Changes:

  • Added global flag --json to skywire-cli
  • Updated skywire-cli visor route add-rule
  • Removed depreciated flag --public from skywire-cli visor tp add

How to test this PR:

  1. Test output of all subcommands under skywire-cli dmsgpty with and without --json flag
  2. Test output of all subcommands under skywire-cli visor with and without --json flag
  3. Test output of all subcommands under skywire-cli vpn with and without --json flag
  4. Test output of all subcommands under skywire-cli rtfind with and without --json flag
  5. Test output of all subcommands under skywire-cli mdisc with and without --json flag

ersonp added 30 commits August 26, 2022 12:47
This commit removes the new function PrintFatalError and uses Catch in it's place. The func Catch is now updated to work with the new json flag.
This commit seperates the add-rule command into three more subcommands app, fwd and intfwd. This is done in order to declutter the original implementation that only had app and intfwd where the latter was incorrectly named as fwd.

We also update printRoutingRules to fix the previously wrongly named printFwdRule and add printIntFwdRule.

We also fix the error catching in funcs parseUint, ParsePK and ParseUUID.
@0pcom 0pcom self-requested a review August 31, 2022 18:21
Copy link
Collaborator

@0pcom 0pcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, approved

@0pcom 0pcom merged commit c97f05c into skycoin:develop Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants