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

rename CrateCmd to CrateShell #257

Merged
merged 3 commits into from Apr 13, 2018
Merged

rename CrateCmd to CrateShell #257

merged 3 commits into from Apr 13, 2018

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Apr 12, 2018

and other cleanups

to make it more descriptive
Copy link
Member

@mfussenegger mfussenegger left a comment

Choose a reason for hiding this comment

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

lgtm

Keep in mind that this requires follow up changes in crate where we use CrateCmd.
Not sure if we should add a changes entry for this. I don't think we make any API promises as it's an app and not a library.

@@ -240,15 +248,19 @@ def __init__(self,
}
self.commands.update(built_in_commands)
self.logger = ColorPrinter(is_tty)

self.output_writer = output_writer or \
OutputWriter(PrintWrapper(), is_tty)
Copy link
Member

Choose a reason for hiding this comment

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

I think we should add a setup.cfg pycodestyle entry and raise the line-length to something like 88 (while still aiming for 80 in most cases)

Breaks like this imho hurt readability more than they improve it. See also https://github.com/ambv/black#line-length

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's better than it was before, though, I think. but I agree, that it makes sense to put it into a single line for readability.

so that there is only a single place where connections are created
for clarification of usage
@chaudum chaudum merged commit ceca8fa into master Apr 13, 2018
@chaudum chaudum deleted the h/rename-command branch April 13, 2018 12:37
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.

None yet

3 participants