Re:Show HN: Sultan – Pythonic interface to your shell
by aeroxis on Monday June 12, 2017 @08:48AM
(#14536866)
Representing each row as an object works, but it ends up having us write custom objects for different result types. When you run Sultan().ls('-l'), you will get back a list of Strings, which you can freely use in Python for your specific needs (like use a Regex to fetch date/times or file size). I felt like this offers developers the best flexibility, rather than trying to customize each output (which will definitely make the codebase very confusing)
[ Parent
| on HN ]
There are no comments on this comment yet.