Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Call/View subcommands parse args to create JSON. #367

Closed
willemneal opened this issue May 13, 2020 · 1 comment
Closed

Call/View subcommands parse args to create JSON. #367

willemneal opened this issue May 13, 2020 · 1 comment
Labels
enhancement New feature or request T-dev-tools

Comments

@willemneal
Copy link
Contributor

willemneal commented May 13, 2020

For example,

 near view contract --accountId "willem.near"

is the same as

near view contract "

{\"accountId\": \"willem.near\"} 

"

Not sure how to handle nested objects though.

@willemneal willemneal added the enhancement New feature or request label May 13, 2020
@amgando
Copy link
Contributor

amgando commented May 15, 2020

this also works in bash

near view contract '{"accountId": "willem.near"}'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request T-dev-tools
Projects
None yet
Development

No branches or pull requests

3 participants