You've already forked httpie-cli
							
							
				mirror of
				https://github.com/httpie/cli.git
				synced 2025-10-30 23:47:52 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			380 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			380 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| """The main entry point. Invoke as `http' or `python -m httpie'.
 | |
| 
 | |
| """
 | |
| import sys
 | |
| 
 | |
| 
 | |
| def main():
 | |
|     try:
 | |
|         from .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()
 |