This commit fixes the controller parser scheme in order to take care
and extract some extra attributes, the manufacturer and version.
The order of the attributes appearing in the regexp scheme must follow
the order they appear in the `bluetoothctl show` outputs.
A new test has been added to test outputs with these extra attrs.
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* [xrandr] Allow props command
Responding to issue #525
Somewhat substantial rewriting here to make the parser more resilient
- Change parser to not mutate the incoming data list, instead index
- Create `Line` class and `categorize` classmethod
- Every line is categorized and regexed, so it gets dispatched to the
right level of responsibility
* Bump version
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* draft for path_list
* updaate doc
* add input check
* fix types
* fix schema: add missing properties
* add _process
* fix _process docs
* refactor: extract path.py parser
* swap order of names alphabetically
* documentation and comments
* path parser: add early return for nodata
* path and path-list parser: add test and fixtures
* typo in file name
* add early return for nodata
* add test and fixtures
* typo in file name
* rename fixtures
* rename fixtures
* refactor to pathlib.Path
* failing on windows - use PurePosixPath
* changed the way to strip dot from suffix
* add POSIX to path
* test commit to see results on windows is failing
* test commit to see results on windows is failing
* add windows path detection
* somehow Path not like the newline from input line
* add test with more items
* remove debug print
* wrap test loops into into subTest
* remove print statements
* add path and path-list to CHANGELOG
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>