mirror of
https://github.com/httpie/cli.git
synced 2024-11-29 03:03:44 +01:00
a3a08a9a22
* Use relative imports in test * Use relative imports * Add myself to contributors :)
21 lines
386 B
Python
21 lines
386 B
Python
#!/usr/bin/env python
|
|
"""The main entry point. Invoke as `http' or `python -m httpie'.
|
|
|
|
"""
|
|
import sys
|
|
|
|
|
|
def main():
|
|
try:
|
|
from httpie.core import main
|
|
exit_status = main()
|
|
except KeyboardInterrupt:
|
|
from httpie.status import ExitStatus
|
|
exit_status = ExitStatus.ERROR_CTRL_C
|
|
|
|
sys.exit(exit_status.value)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|