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

518 refactor magic cmd #654

Merged
merged 16 commits into from
Jun 27, 2023
Merged

Conversation

AnirudhVIyer
Copy link

@AnirudhVIyer AnirudhVIyer commented Jun 23, 2023

Describe your changes

I have refactored the magic_cmd.py file by moving each individual command logic to a separate location. Now there is a src/cmd folder with the required function to execute each command. magic_cmd.py has functions that would validate and route the commands.

Issue number

Closes #518

Checklist before requesting a review


📚 Documentation preview 📚: https://jupysql--654.org.readthedocs.build/en/654/


@AnirudhVIyer AnirudhVIyer marked this pull request as ready for review June 23, 2023 16:19
@AnirudhVIyer
Copy link
Author

@edublancas ready for review

@edublancas edublancas added the no-changelog This PR doesn't require a changelog entry label Jun 23, 2023
src/sql/cmd/cmd_utils.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
src/sql/cmd/explore.py Outdated Show resolved Hide resolved
src/sql/cmd/columns.py Outdated Show resolved Hide resolved
src/sql/cmd/columns.py Outdated Show resolved Hide resolved
src/sql/cmd/snippets.py Outdated Show resolved Hide resolved
src/sql/magic_cmd.py Show resolved Hide resolved
@AnirudhVIyer
Copy link
Author

Sure, looking into the changes

Copy link

@yafimvo yafimvo left a comment

Choose a reason for hiding this comment

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

lgtm! just one question about changing a test case

src/tests/test_magic_cmd.py Outdated Show resolved Hide resolved
src/tests/test_magic_cmd.py Outdated Show resolved Hide resolved
@edublancas edublancas merged commit ece54c1 into ploomber:master Jun 27, 2023
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog This PR doesn't require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor magic_cmd.py
3 participants