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

Moves the cli commands to a module #2223

Closed
wants to merge 4 commits into from
Closed

Conversation

rossjones
Copy link
Contributor

Moves all of the cli commands from a single file to a file-per-command in the ckan.lib.commands module.

Unfortunately removing cli.py from the pep whitelist has made the pep8 command now start checking a lot of files that it didn't before - I suspect a bug in the pep8 test somewhere.

Moves all of the cli commands from a single file to a file-per-command
in the ckan.lib.commands module.

Unfortunately removing cli.py from the pep whitelist has made the pep8
command now start checking a lot of files that it didn't before - I
suspect a bug in the pep8 test somewhere.  As such, this is a WIP.
@@ -953,4 +955,4 @@ def test_bad(self):
' resolving\nWe should not be translating exceptions in most'
' situations. We need to when the exception message is passed'
' to the front end for example validation')
show_fails(msg, self.fails)
show_fails(msg, self.fails)
Copy link
Contributor

Choose a reason for hiding this comment

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

Found it - looks like you got rid of the final \n, which is what the PEP8 error is about. I'll commit the fix.

@davidread
Copy link
Contributor

Hmmm I suspect this isn't going to be finished off and may not be worth merging all the updates since this was first worked on. Closing

@davidread davidread closed this Nov 12, 2015
@smotornyuk smotornyuk deleted the start-cli-cleanup branch December 19, 2018 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants