mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
06ef27c576
Shebangs have no function in non-executable files. This file does not need to be directly executed.
20 lines
364 B
Python
20 lines
364 B
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()
|