mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-29 06:04:34 +02:00
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 hints
Fix 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
|
|
@ -16,7 +16,7 @@ class CmdCflags(Cmd): # export
|
|||
parser.add_argument('module', nargs='*', help='Modules')
|
||||
|
||||
async def _run(self, args: Namespace) -> None:
|
||||
deps = self.app.get_modules_from_project_txt(args.module, ['pkg.requires.jw'], 'build',
|
||||
deps = self.app.get_project_refs(args.module, ['pkg.requires.jw'], 'build',
|
||||
scope = Scope.Subtree, add_self=True, names_only=True)
|
||||
out = []
|
||||
for m in reversed(deps):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue