Commit Graph

73 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
6dc934c82e Add avlist module 2020-04-14 22:21:16 +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
6b1616d4e7 Add siminfo module 2020-04-14 00:43:51 +02:00
Bridget
1ccde11100 Add todo item 2020-04-14 00:37:31 +02:00
Bridget
bf0ae59532 Move file 2020-04-14 00:32:06 +02:00
Bridget
8e9b9fafe3 Improve error messages 2020-04-14 00:29:32 +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
e3eec77b89 Remove unused variable 2020-04-13 20:14:20 +02:00
Bridget
a7ed0d03b3 Improve help output of echo module 2020-04-13 20:12:23 +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
9ad4cd13ce Add status light module 2020-04-13 17:43:37 +02:00
Bridget
0f9680e300 Attempt to disconnect on fatal exception 2020-04-13 17:27:41 +02:00
Bridget
16e481ad54 Broadcast all commands, even internal ones
This makes it possible to create hook scripts that will execute on
connect, disconnect, etc.
2020-04-13 17:23:14 +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
23c4b67773 Handle 401 HTTP error 2020-04-13 16:03:34 +02:00
Bridget
4f0dea7449 Refactor 2020-04-13 16:00:17 +02:00
Bridget
6c53b8ab83 Raise requests errors 2020-04-13 15:57:44 +02:00
Bridget
53df199bef Only allow one session in use at a time 2020-04-13 15:37:45 +02:00
Bridget
39e2a8ee74 Rename connection intitialization string 2020-04-13 15:15:42 +02:00
Bridget
551befc4ae Refactor 2020-04-13 15:10:53 +02:00
Bridget
682e744be9 Fix typo in comment 2020-04-13 15:05:34 +02:00
Bridget
14af7b04d7 Remove global request_id key
This variable was only used for double-checking the link_message
response. Because we use a specific number in the link_message
communications, we can assume the returned ID is valid.
2020-04-13 14:52:29 +02:00
Bridget
96fa40d610 Refactor 2020-04-13 14:50:09 +02:00
Bridget
33f72da7ce Refactor 2020-04-13 14:41:15 +02:00
Bridget
65157ffb04 Properly serialize into JSON 2020-04-13 14:07:34 +02:00
Bridget
72e1bcd388 Rename file for clarity 2020-04-13 13:59:22 +02:00
Bridget
b8f68ac4f8 Reset on owner change and region change/restart 2020-04-13 13:57:38 +02:00
Bridget
e08fe79f55 Refactor; split comms logic into lib module 2020-04-13 13:53:02 +02:00
Bridget
9d7123d3e8 Ignore pycache dir 2020-04-13 13:52:54 +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