jw.pkg.App: Code beautification
Major - but not yet sufficient - code beautification starting from jw.pkg.App.
- Make more methods private - Rename methods to be more self-explanatory - Same for method arguments, notably clean up some inconsistent uses of "module" vs "project" - Add more type hintsFix API breakage in the command modules.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2bbf5bd8e7
commit
6ca4af77d7
12 changed files with 204 additions and 209 deletions
|
|
@ -37,7 +37,7 @@ class CmdBuild(Cmd): # export
|
|||
else:
|
||||
dep_cache[prereq_type]: dict[str, str] = {}
|
||||
|
||||
ret = self.app.get_modules_from_project_txt([ cur ], ['pkg.requires.jw'],
|
||||
ret = self.app.get_project_refs([ cur ], ['pkg.requires.jw'],
|
||||
prereq_type, scope = Scope.Subtree, add_self=False, names_only=True)
|
||||
log(DEBUG, 'prerequisites = ' + ' '.join(ret))
|
||||
if cur in ret:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue