With #2355 getting merged, we can start moving all utils to use UResult/UError. When this is done, the temporary gen_uumain macro can be incorporated into main and be removed.
Documentation for the error handling can be found in the uucore::error module in rustdoc format. The current implementation is not considered final, so feel free to suggest changes.
Examples of utils that use UResult:
Utils:
With #2355 getting merged, we can start moving all utils to use
UResult/UError. When this is done, the temporarygen_uumainmacro can be incorporated intomainand be removed.Documentation for the error handling can be found in the
uucore::errormodule in rustdoc format. The current implementation is not considered final, so feel free to suggest changes.Examples of utils that use
UResult:lsmkdirmktemptouchUtils:
archbase32base64basenamecatchconchgrpchmodchownchrootcksumcommcpcsplitcutdatedddfdircolorsdirnameduechoenvexpandexprfactorfalsefmtfoldgroupshashsumheadhostidhostnameidinstalljoinkilllinklnlognamelsmkdirmkfifomknodmktempmoremvnicenlnohupnprocnumfmtodpastepathchkpinkyprprintenvprintfptxpwdreadlinkrealpathrelpathrmrmdirseqshredshufsleepsortsplitstatstdbufsumsynctactailteetesttimeouttouchtrtruetruncatetsortttyunameunexpanduniqunlinkuptimeuserswcwhowhoamiyes