Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

improve UI: export command fails: No such file or directory #69

Open
whilei opened this issue Jan 12, 2018 · 2 comments
Open

improve UI: export command fails: No such file or directory #69

whilei opened this issue Jan 12, 2018 · 2 comments

Comments

@whilei
Copy link
Contributor

whilei commented Jan 12, 2018

~/Library/EthereumClassic  ⟠ which emerald
/usr/local/bin/emerald

~/Library/EthereumClassic  ⟠ emerald -V
v0.19.0

~/Library/EthereumClassic  ⟠ emerald new --chain mainnet
! Warning: passphrase can't be restored. Don't forget it !
Enter passphrase:

Created new account: 0x2c1ed20222ef60eb4d88cc54c18319ec7fbf547d

~/Library/EthereumClassic  ⟠ emerald list
ADDRESS                                       NAME
0x2c1ed20222ef60eb4d88cc54c18319ec7fbf547d
0xc1243818f7b39454310b3b4262a2a83882e0150f    testes

~/Library/EthereumClassic  ⟠ emerald export 0x2c1ed20222ef60eb4d88cc54c18319ec7fbf547d ./add.json
[ERROR]	Command execution error: No such file or directory (os error 2)
~/Library/EthereumClassic  ⟠ emerald export 0x2c1ed20222ef60eb4d88cc54c18319ec7fbf547d $pwd/add.json
[ERROR]	Command execution error: No such file or directory (os error 2)
~/Library/EthereumClassic  ⟠ emerald export --chain mainnet 0x2c1ed20222ef60eb4d88cc54c18319ec7fbf547d ./add.json
[ERROR]	Command execution error: No such file or directory (os error 2)

~/Library/EthereumClassic  ⟠ emerald --help | grep export
  emerald export    [--chain=<chain>]  ([-a | --all] | <address>) <path>
@whilei
Copy link
Contributor Author

whilei commented Jan 12, 2018

Aha -- solved.

~/Library/EthereumClassic  ⟠ emerald export --chain mainnet 0x2c1ed20222ef60eb4d88cc54c18319ec7fbf547d .

Maybe could add more useful error feedback -- like: <path> must be a path to an existing directory or something

@whilei
Copy link
Contributor Author

whilei commented Jan 12, 2018

Also, when it does successfully export, it would be nice to get the path/name of the file to stdout, so as a human or program would know which file was generated.

@whilei whilei changed the title export command fails: No such file or directory improve UI: export command fails: No such file or directory Jan 12, 2018
@r8d8 r8d8 removed the In Progress label Oct 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants