First one is much more verbose, but let me know and I can commit the change before merging.
added getFacts to device(), to streamline the calling of getFacts a bit and allow to be called with the -f switch, added some pretty code to createDevice() to allow printing of complex data like dictionaries for testing.
updated getHostname() to use JSON instead of text, much easier to parse.
added getCPU method, returns entire line of cpu.
This can be changed to return only:
or just
First one is much more verbose, but let me know and I can commit the change before merging.
added getFacts to device(), to streamline the calling of getFacts a bit and allow to be called with the -f switch, added some pretty code to createDevice() to allow printing of complex data like dictionaries for testing.