Validator dir creation (#1746)

## Issue Addressed

Resolves #1744

## Proposed Changes

- Add `directory::ensure_dir_exists` to the `ValidatorDefinition::open_or_create` method 
- As @pawanjay176 suggested, making the `--validator-dir` non-global so users are forced to include the flag after the `validator` subcommand. Current behavior seems to be ignoring the flag if it comes after something like `validator import`

## Additional Info
N/A
This commit is contained in:
realbigsean
2020-10-08 21:01:32 +00:00
parent a67fa5f4a4
commit b69c63d486
5 changed files with 8 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -38,6 +38,7 @@ dependencies = [
name = "account_utils"
version = "0.1.0"
dependencies = [
"directory",
"eth2_keystore",
"eth2_wallet",
"rand 0.7.3",