jw-pkg/src/python/jw/pkg/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 55db326898
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m25s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m49s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m0s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m56s
CI / Packaging test (push) Successful in 0s
lib.util.run_cmd(): Fix forgotten cmd_input
jw-pkg secrets list-secrets spams the console without --interactive=false
because it thinks it should query packages and files in interactive mode.

The underlying bug is that run_cmd() derives the interactive flag of a
freshly created Local context from cmd_input, but it never forwards
cmd_input to ExecContext.run().  Since run() defaults to
InputMode.OptInteractive, an explicit cmd_input is silently ignored: a byte
string is not fed to the command's stdin, InputMode.Auto is downgraded to
non-interactive, and with a caller-provided ExecContext the requested mode
is lost in all cases.

Forward cmd_input in kwargs so the requested input mode reaches run().

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.99.2
2026-10-03 08:51:44 +02:00
..
distros lib.distros.redhat.Distro: Add missing file 2026-08-15 20:08:32 +02:00
ec lib.FileContext: Add readdir() method 2026-09-29 15:29:19 +02:00
pm py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
version lib.version.Dependency.__version_boundaries(): Use Version.next() 2026-09-15 21:43:47 +02:00
App.py lib.{App,Cmd}: Pass parent= by name to Cmd* constructors 2026-09-20 11:51:25 +02:00
AsyncRunner.py lib.AsyncRunner: Fix asyncio.Event() for Python 3.12+ 2026-08-15 19:51:36 +02:00
base.py lib.Result: Add module 2026-06-02 17:52:49 +02:00
Cmd.py lib.{App,Cmd}: Pass parent= by name to Cmd* constructors 2026-09-20 11:51:25 +02:00
CopyContext.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
Distro.py lib.Distro: Fix os-release and cascade macros 2026-09-14 20:20:34 +02:00
ExecApp.py lib.ExecApp: Add class 2026-08-22 17:31:57 +02:00
ExecContext.py lib.FileContext: Add readdir() method 2026-09-29 15:29:19 +02:00
FileContext.py lib.FileContext: Add readdir() method 2026-09-29 15:29:19 +02:00
init.py init.detect_modules(): Add base_types filter 2026-08-24 14:23:27 +02:00
log.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Makefile jw.pkg.build.lib: Move to jw.pkg.lib 2026-01-26 17:58:23 +01:00
Package.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
PackageFilter.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
ProcFilter.py App, lib, cmds: Fix mypy.explicit-override fallout 2026-08-07 18:02:26 +02:00
ProcFilterGpg.py App, lib, cmds: Fix mypy.explicit-override fallout 2026-08-07 18:02:26 +02:00
ProjectConf.py lib.ProjectConf: Add module 2026-06-30 12:46:36 +02:00
Result.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
TarIo.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Types.py lib.Types: Restrict LoadTypes to ABC-derived classes 2026-09-07 09:12:42 +02:00
Uri.py lib.Uri: Fix path join for empty authority 2026-09-05 14:01:46 +02:00
util.py lib.util.run_cmd(): Fix forgotten cmd_input 2026-10-03 08:51:44 +02:00