Build and packaging library
  • Python 50.6%
  • Makefile 36.1%
  • Shell 13.3%
Find a file
Jan Lindemann 3b0f7727a7
lib.Cmd.AbstractCmd.aliases: Add property

Add a property aliases to AbstractCmd in prepeparation for commands to bear multiple names / abbreviations / aliases.

The App.add_cmds_to_parser() function uses parse_known_args() to determine which subcommand was invoked, then conditionally registers nested subcommands. The lookup dictionary (scs) contains only canonical names, not aliases, so add them too, otherwise using the alias instead of the canonical name causes the lookup to fail and nested subcommands to never be registered.

Fix: Register each alias in scs pointing to the same SubCommand object, and deduplicate with id(sc) when iterating in all=True mode to avoid infinite recursion on help output.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-25 09:50:19 +02:00
.github/workflows ci.yaml: test-packaging.yaml@{master-test -> master} 2026-06-08 19:43:15 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf conf/templates: Fix installation 2026-06-11 13:30:43 +02:00
make rules.mk: Add targets to check shell syntax 2026-06-24 21:52:35 +02:00
scripts python-tools.sh: Fix __all__ format violation 2026-06-25 09:50:15 +02:00
src lib.Cmd.AbstractCmd.aliases: Add property 2026-06-25 09:50:19 +02:00
.gitignore Everywhere: Rename package "jw-build" to "jw-pkg" 2025-11-28 13:35:56 +01:00
HASH Release 1.0.0-243@suse-tumbleweed/x86_64 2026-06-24 23:33:33 +00:00
Makefile $(TOPDIR)/Makefile: include py-topdir.mk 2026-05-31 18:20:35 +02:00
RELEASES Release 1.0.0-243@suse-tumbleweed/x86_64 2026-06-24 23:33:33 +00:00
VERSION Start version: 1.0.0-243 2026-06-24 23:09:33 +00:00