-
Notifications
You must be signed in to change notification settings - Fork 955
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
apps: add namadac utils default-base-dir #1491
Conversation
Add a utility command to print the default base directory that would be used by the Namada command line if a base directory were not provided on the command line or in the environment.
println!( | ||
"{}", | ||
get_default_namada_folder().to_str().expect( | ||
"expected a default namada folder to be possible to determine" |
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.
<pedantic>Error message is a bit cryptic</pedantic>
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.
Yeah +1 I'd like to see something else
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.
In theory we should have a unit test even for small features like this.
* origin/ray/utils-base-dir: changelog: add #1491 apps: add namadac utils default-base-dir
* origin/ray/utils-base-dir: changelog: add #1491 apps: add namadac utils default-base-dir
Add a utility command to print the default base directory that would be
used by the Namada command line if a base directory were not provided
on the command line or in the environment.