WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
ASSIGNED
107188
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug