Commit Graph

69 Commits

Author SHA1 Message Date
fe3a975ba3 leave it up to rich... if no style is set we still get colour on stderr, but this can be overriden with NO_COLOR manually
patch bump
2025-06-22 11:33:52 +01:00
d8622ab037 set default values for no_colour style to 'none'.
This fixes rich markup error

ensure errors are written without colour if NO_COLOR is set
2025-06-22 10:49:05 +01:00
10cb9777fa add 0.11.0 to CHANGELOG 2025-06-22 02:57:31 +01:00
c48f7a49ac add Style section to README 2025-06-22 02:54:42 +01:00
b14d9b7610 ensure studio mode is disabled on test cleanup 2025-06-22 02:54:08 +01:00
864751ecc9 remove terminaltables3 dep, add rich 2025-06-22 02:53:46 +01:00
c02ffac403 replace terminaltables with rich tables.
allow rich to handle all console output.

util.check_mark is now used to pass back colourless check/cross marks if NO_COLOR is set or --style/SLOBS_STYLE was not set.
2025-06-22 02:52:27 +01:00
6bcdd8391c add --style and --no-border flags to root command 2025-06-22 02:39:28 +01:00
b0d311dad9 define styles 2025-06-22 02:38:56 +01:00
46159a0ca4 add missing for-else comment 2025-06-15 08:40:36 +01:00
23d3118e6a keep names consistent 2025-06-13 14:30:50 +01:00
c369f4e3d5 add 0.10.0 to CHANGELOG 2025-06-13 14:19:22 +01:00
129c3f57f2 minor bump 2025-06-13 14:14:16 +01:00
42519ba294 slow down the scene tests in an attempt to avoid rate limiting issues 2025-06-13 14:11:16 +01:00
09a44b2dea add SlobsCliProtocolError for wrapping ProtocolError
handle ProtocolError(s) and reraise as SlobsCliProtocolError. This has the following benefits:
A user friendly error message
A non-zero exit code
2025-06-13 14:10:54 +01:00
f4421b3351 call next(iter()) on excgroup.exceptions to convery intent a little better
(we dont intend to iterate through them, we just want to raise the first one)
2025-06-13 14:04:05 +01:00
f282f86e72 make test a composite command so we can avoid failing fast 2025-06-13 05:46:30 +01:00
81d0072148 revert default to localhost.
the slow resolution was due to Docker desktop...

patch bump
2025-06-13 04:34:15 +01:00
f3c94d1dee add comments to for-else blocks 2025-06-13 00:52:27 +01:00
3c09f9fd5b upd CHANGELOG 2025-06-12 23:47:35 +01:00
51d49c9c93 add status to audio section 2025-06-12 23:47:23 +01:00
bc43c8483a add audio unit tests
add audio status command

patch bump
2025-06-12 23:47:07 +01:00
57e31a7e49 arguments appear to be required by default. 2025-06-12 23:25:07 +01:00
db6a9b5e84 add studiomode unit tests 2025-06-12 23:10:01 +01:00
03f1dac8ea rename leftmost column heading for audio list
patch bump
2025-06-12 22:17:48 +01:00
535b22bf8e add 0.9.0 to CHANGELOG 2025-06-12 22:13:58 +01:00
6e95e4d670 add scenecollection command group
minor bump
2025-06-12 22:13:46 +01:00
519db1b46e add Scene Collection to README 2025-06-12 22:04:15 +01:00
582587bed5 add ruff config
run files through formatter

add dosctrings to satisfy the linter
2025-06-12 20:34:14 +01:00
fecd13d345 patch bump 2025-06-12 18:50:43 +01:00
a1a22d0d00 scene list and audio list now print tables
patch bump
2025-06-12 18:49:54 +01:00
2a18b94b11 add 0.8.3 to CHANGELOG
pumb pyslobs dep

patch bump
2025-06-12 13:47:18 +01:00
409aa2333f upd scene/audio commands 2025-06-12 13:46:32 +01:00
80da58bd6f add --id option, this allows a user to optionally show the source ids 2025-06-12 13:45:38 +01:00
0c5bbc114f fix regression
patch bump
2025-06-12 05:42:30 +01:00
564f4116d1 remove exception handling, we no longer raise exception on empty sources list.
split long line

patch bump
2025-06-12 05:34:36 +01:00
48201e4bbb add 0.8.0 to CHANGELOG 2025-06-12 05:29:48 +01:00
00273ff461 upd tests to check exit_code and err output instead of exceptions 2025-06-12 05:29:22 +01:00
d33c209d7c add custom error class SlobsCliError
add exception group handling for all commands that may raise exceptions

add comments to for-else blocks
2025-06-12 05:28:54 +01:00
a8bed0f4d9 swap localhost for 127.0.0.1 in examples 2025-06-11 19:02:29 +01:00
51923dc8a8 ensure tox tests run setup/teardown scripts
bump min python version to 3.11 (because of ExceptionGroup in tests)

patch bump
2025-06-11 16:37:02 +01:00
37364e7243 rename model variables
patch bump
2025-06-11 16:34:36 +01:00
377a9df824 add pre_test script
ensure teardown removes the test scenes
2025-06-11 13:34:31 +01:00
e7a561c7b4 add --version/-v flag 2025-06-11 02:09:32 +01:00
cb0a87df68 fix readme commands link 2025-06-11 01:42:05 +01:00
ed08d7eff2 Create LICENSE 2025-06-11 01:32:24 +01:00
4ab2706475 add special thanks 2025-06-11 00:33:51 +01:00
e4353d7626 token is now required
patch bump
2025-06-10 22:53:14 +01:00
6985ad84d1 md fix 2025-06-10 22:38:28 +01:00
e85b97777e fix audio examples 2025-06-10 22:36:53 +01:00