Commit Graph

44 Commits

Author SHA1 Message Date
Bridget
ea7b5fc0fb Fix return type hint 2020-04-15 00:21:43 +02:00
Bridget
3036c6814c Fix incorrect type 2020-04-15 00:18:39 +02:00
Bridget
4d05995765 Pretty-print lists of lists 2020-04-14 20:46:18 +02:00
Bridget
ae71285beb Render list of dicts as table 2020-04-14 01:22:31 +02:00
Bridget
53bae0bd5c Fix hashbang 2020-04-14 01:01:05 +02:00
Bridget
8fc72102ff Change 'remote' to 'endpoint' for clarity 2020-04-14 00:27:42 +02:00
Bridget
a551595220 Change prompt when connected for extra clarity 2020-04-13 23:54:13 +02:00
Bridget
1c466bf452 Colorize connection message, remove divider 2020-04-13 23:38:17 +02:00
Bridget
2c62cd7b05 Colorize error messages 2020-04-13 23:26:00 +02:00
Bridget
e471d8184b Simplify error handling 2020-04-13 23:15:15 +02:00
Bridget
f4b86997f9 Handle 404 and 500 HTTP errors 2020-04-13 20:22:37 +02:00
Bridget
55765528d9 Improve help messages of builtin commands 2020-04-13 20:03:03 +02:00
Bridget
83df132452 Improve help output generated from docstrings 2020-04-13 20:02:06 +02:00
Bridget
0e4536e846 Colorize help output for extra clarity 2020-04-13 19:39:59 +02:00
Bridget
c5f8a91477 Remove endpoint commands on disconnect 2020-04-13 19:15:01 +02:00
Bridget
44f014ac44 Differentiate built-in and remote commands in help 2020-04-13 19:11:44 +02:00
Bridget
5c7e83c103 On EOF: Disconnect if connected, else exit 2020-04-13 18:08:37 +02:00
Bridget
6c82fea24a Return error message if not connected 2020-04-13 17:58:21 +02:00
Bridget
b481185038 Fix incorrect return type hint 2020-04-13 17:57:12 +02:00
Bridget
07e6050315 Clear url on disconnect 2020-04-13 17:56:51 +02:00
Bridget
0f9680e300 Attempt to disconnect on fatal exception 2020-04-13 17:27:41 +02:00
Bridget
95530fd468 Handle timeout error 2020-04-13 16:51:51 +02:00
Bridget
83ec087f7b Improve error handling 2020-04-13 16:16:12 +02:00
Bridget
53df199bef Only allow one session in use at a time 2020-04-13 15:37:45 +02:00
Bridget
e08fe79f55 Refactor; split comms logic into lib module 2020-04-13 13:53:02 +02:00
Bridget
8ee1868616 Disconnect if connected when trying to connect 2020-04-13 12:11:38 +02:00
Bridget
08b858e12f Make API communicate with modules 2020-04-13 01:43:13 +02:00
Bridget
840882898d Make file executable 2020-04-12 23:41:16 +02:00
Bridget
2900ae7770 Apply isort 2020-04-12 23:27:52 +02:00
Bridget
d4030b4db9 Apply Black 2020-04-12 23:27:29 +02:00
Bridget
b032dc1b24 Ignore mypy error 2020-04-12 23:26:19 +02:00
Bridget
93cd1a8d05 Adjust ruler and doc header 2020-04-12 23:16:59 +02:00
Bridget
c6f001cef6 Split disconnect and exit commands 2020-04-12 23:11:28 +02:00
Bridget
eb831ebdcd Add docstring 2020-04-12 22:45:41 +02:00
Bridget
e550fd1bad Don't do anything on empty line submit 2020-04-12 22:44:20 +02:00
Bridget
89e8c3f9bd Add intro text 2020-04-12 22:42:48 +02:00
Bridget
7a74ca52e8 Handle KeyboardInterrupt 2020-04-12 22:13:48 +02:00
Bridget
c12df307c3 Refactor 2020-04-12 22:12:06 +02:00
Bridget
757211bbf6 Use python's builtin cmd library for input/output 2020-04-12 21:44:37 +02:00
Bridget
fe141170d2 Refactor 2020-04-12 18:27:18 +02:00
Bridget
3bdbbcca98 Use more aesthetically pleasing divider 2020-04-12 17:52:17 +02:00
Bridget
a79a156621 Use secret key when disconnecting 2020-04-12 17:51:26 +02:00
Bridget
b5d6c48d58 Add secret key authentication 2020-04-12 17:45:27 +02:00
Bridget
1b2998638a Initial commit 2020-04-12 16:31:28 +02:00