ASSIGNED107188
Reorganize webkitdirs.pm into modular pieces
https://bugs.webkit.org/show_bug.cgi?id=107188
Summary Reorganize webkitdirs.pm into modular pieces
David Farler
Reported 2013-01-17 15:11:29 PST
webkitdirs.pm is currently too state-oriented and overloaded in functionality to easily extend. I propose the following: - Separate ports and extend a common interface - Separate the concerns of command line options, utility functions, etc. - Recommend rewrite in something like Python - Automatically generate usage help using something like argparse - Reduce reliance on state - *Do not* mutate ARGV For command line options: - dynamically add argument sub-parsers depending on the tool and port For utility functions: - separate the various ports to ease merging and preventing interference All of this might entail refactoring a lot of the tools but I think the long-term benefit would be worth it. Being able to centralize library behavior so that all ports can extend or utilize modules without interfering with each other would be a good thing.
Attachments
Note You need to log in before you can comment on or make changes to this bug.