-
Notifications
You must be signed in to change notification settings - Fork 29
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
Faucet feature for SwankyNode #192
Conversation
…n account is created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea the account balance
command!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when running the balance
command I get a bit vague error:
$ ../bin/run.js account balance
TypeError: Cannot read properties of undefined (reading 'error')
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
if that's not a big problem, I would suggest to handle this, so that the user understands clearly that an argument is missing; similar thing touches faucet
command
apart from this, works well for me
@@ -0,0 +1,45 @@ | |||
import { Command } from "@oclif/core"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ipapandinas Why is that class here? Isn't it more logical to put it into src/lib/..
? When we use swanky account --help
oclif thinks that it is a command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea of having SwankyAccountCommand
is to encapsulate common methods for account commands by inheriting this abstract class. But you are right we should move it, otherwise Oclif discovers it as a command.
No description provided.