This repository was archived by the owner on Feb 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Enhancements to athena-cli #36
Open
bryanck
wants to merge
21
commits into
guardian:master
Choose a base branch
from
braintreeps:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8b2ff9f
support output formats in interactive mode
d49639e
charset handling, format supports in shell, more
braintreeps 8272554
renamed service back to athena
braintreeps 41f70bd
charset encoding fix, csv as default for batch
braintreeps af26147
allow setting format interactively
b5e774f
fixed service name
braintreeps a808d4d
version update
braintreeps 0e8dbc3
specify arg name for boolean
279b22d
encoding cleanup, Python 3 only
d0fbaad
remove unused import
braintreeps 98fc251
use older api for python < 3.7
braintreeps 7f90919
set version requirements correctly
a01ffc8
Merge branch 'master' of https://github.com/braintreeps/athena-cli
72f119d
remove shebang
b69c280
lowercase commands for multiline
4fd817c
fixed unreachable code
7ec5534
better fix for unreachable code
33a2f63
another fix
81d8ce9
minor cleanup
865fe2f
fixed travis config
braintreeps 395fe97
removed 3.7 from travis
braintreeps File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| language: python | ||
| python: | ||
| - "2.7" | ||
| - "3.4" | ||
| - "3.5" | ||
| - "3.6" | ||
|
|
||
| install: | ||
| - "pip install ." | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
|
|
||
| from setuptools import setup, find_packages | ||
|
|
||
| version = '0.1.8' | ||
| version = '0.2.0' | ||
|
|
||
| setup( | ||
| name="athena-cli", | ||
|
|
@@ -17,8 +17,8 @@ | |
| ], | ||
| install_requires=[ | ||
| 'boto3', | ||
| 'cmd2', | ||
| 'tabulate>=0.8.1' | ||
| 'cmd2>=0.9.4', | ||
| 'tabulate>=0.8.2' | ||
| ], | ||
| include_package_data=True, | ||
| zip_safe=True, | ||
|
|
@@ -30,5 +30,6 @@ | |
| keywords='aws athena presto cli', | ||
| classifiers=[ | ||
| 'Topic :: Utilities' | ||
| ] | ||
| ], | ||
| python_requires='>=3.5' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tests are failing because they are being run against Python 2.7 and 3.4 but this You need to update the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked in a fix |
||
| ) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do
EXITandQUITdo exactly the same thing?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, "exit" is supported by other CLIs (like the presto-cli) so some users liked to have it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. https://github.com/prestodb/presto/blob/master/presto-cli/src/main/java/com/facebook/presto/cli/Console.java#L229