Skip to content
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

feat(cli): Add shell expansion to config and flag parsing #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sambukowski
Copy link
Contributor

This pr adds the ability for the config parsing of the cli to perform shell expansion on the contents.
Previously items like this:
astria_sequencer_db_filepath = '~/.astria/default/data/astria_sequencer_db'
Would be parsed literally, causing files to be placed in directories named ~ which can cause issues.
The above will now be properly parsed as though input on the command line.
Similarly, input like the following will also be correctly parsed:
astria_sequencer_db_filepath = '$HOME/.astria/default/data/astria_sequencer_db'

closes #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement shell expansion for path parsing in config files
1 participant