Add a general purpose contract CLI #11

Merged
bumi merged 3 commits from features/cli into master 2018-04-07 20:02:31 +00:00
bumi commented 2018-04-04 20:29:59 +00:00 (Migrated from github.com)

This allows to call any method on any contract using the CLI.

for example:

$ truffle exec scripts/cli.js Operator proposalsCount

This allows to call any method on any contract using the CLI. for example: $ truffle exec scripts/cli.js Operator proposalsCount
fsmanuel (Migrated from github.com) approved these changes 2018-04-07 17:36:11 +00:00
fsmanuel (Migrated from github.com) left a comment

Looks good!
What about the code style? We don't have a linter, have we? Do we use ; at the end of line?
I would suggest we have a space between if and the condition: if (!contract[method]).
Anyway, I'm approving!

Looks good! What about the code style? We don't have a linter, have we? Do we use `;` at the end of line? I would suggest we have a space between `if` and the condition: `if (!contract[method])`. Anyway, I'm approving!
bumi commented 2018-04-07 17:38:53 +00:00 (Migrated from github.com)

yep, should have a linter here I guess. my JS style is not very good I guess - need to teach my editor some tricks.

yep, should have a linter here I guess. my JS style is not very good I guess - need to teach my editor some tricks.
Sign in to join this conversation.
No description provided.