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

Allow ~ and fix for schema_export #46

Merged
merged 5 commits into from
Jan 5, 2024
Merged

Conversation

SamORichards
Copy link
Contributor

@SamORichards SamORichards commented Dec 19, 2023

  • Allows ~ in the path when creating a new Dolt object
  • Fixes a schema_export, the cli seems to have removed the need to for --filename flag

the --filename flag appears to have been removed from the cli
@SamORichards SamORichards changed the title Allow ~ in Dolt init Allow ~ and fix for schema_export Jan 5, 2024
@@ -267,6 +267,8 @@ class Dolt(DoltT):
"""

def __init__(self, repo_dir: str, print_output: Optional[bool] = None):
# allow ~ to be used in paths
repo_dir = os.path.expanduser(repo_dir)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you mind adding a test for sample usage in tests/test_dolt.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test added

Copy link
Collaborator

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for taking the time to contribute these PRs!

@max-hoffman max-hoffman merged commit 04c18ad into dolthub:main Jan 5, 2024
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.

2 participants