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

Add --output json to all our binaries for init so we can parse data in a nice orderly fashion #1898

Closed
tommyv1987 opened this issue Dec 6, 2022 · 0 comments · Fixed by #1864

Comments

@tommyv1987
Copy link
Contributor

tommyv1987 commented Dec 6, 2022

Currently, when trying to automate testing, the process stdout for a binary on init is frustratingly long to parse all the output.

Let's follow wasmd footsteps and and the arg --output json on init to print the relevant information:

for example:

"\n\n      _ __  _   _ _ __ ___\n     | '_ \\| | | | '_ \\ _ \\\n     | | | | |_| | | | | | |\n     |_| |_|\\__, |_| |_| |_|\n            |___/\n\n             (gateway - version 1.1.1)\n\n    \nInitialising gateway test-data-gateway...\nGateway \"test-data-gateway\" was already initialised before! Config information will be overwritten (but keys will be kept)!\nSaved configuration file to \"/Users/tommyvez/.nym/gateways/test-data-gateway/config/config.toml\"\nGateway configuration completed.\n\n\n\nIdentity Key: 3jCDdg5uGE9n4NMiKUE7mTfRAQeKNCQkdYuT6XB69uCJ\nSphinx Key: 3fq49FEbLzE7zLCvvkT6Jh43TPjsbfc215MD5c2uaW2e\nOwner Signature: owneraddress\nHost: 127.0.0.1 (bind address: 127.0.0.1)\nVersion: 1.1.1\nMix Port: 1789, Clients port: 9000\nData store is at: \"/Users/tommyvez/.nym/gateways/test-data-gateway/data/db.sqlite\"\n"```

To:

{
   "identity_key": "3jCDdg5uGE9n4NMiKUE7mTfRAQeKNCQkdYuT6XB69uCJ",
   "sphinx_key": "3fq49FEbLzE7zLCvvkT6Jh43TPjsbfc215MD5c2uaW2e",
   "owner_signature": "3DtSfLaDu2av8SCccu8ZwiRA9BDu9P2NDMuZnj2VtvJWwdiExLJqSd3hPZj7Huh9LBPhnJFv1PsMxiaHw76u592t",
   "host": "127.0.0.1 (bind address: 127.0.0.1)",
   "version": "1.1.1", 
   "mix_port": 1789, 
   "clients_port": 9000,
   "data_store": "/Users/tommyvez/.nym/gateways/test-data-gateway/data/db.sqlite"
}

This will make life 10x for automation

@futurechimp futurechimp transferred this issue from another repository Dec 12, 2022
@mmsinclair mmsinclair moved this to Done in Core systems May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant