jw-pkg/src/python/jw/pkg/cmds
Jan Lindemann 54aecff8e4 lib.ExecContext.run(), .sudo(): Rename env

The name of the env parameter to ExecContext.run() and .sudo() is not descriptive enough for which environment is supposed to be modified and how, so rename and split it up as follows:

- .run(): env -> mod_env

- .sudo(): env -> mod_env_sudo and mod_env_cmd

The parameters have the following meaning:

- "mod_env*" means that the environment is modified, not replaced

- "mod_env" and "mod_env_cmd" modify the environment "cmd" runs in

- "mod_env_sudo" modifies the environment sudo runs in

Fix the fallout of the API change all over jw-pkg.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-19 14:36:50 +02:00
..
distro cmds.distro.CmdInstall: Support macro expansion 2026-04-16 16:07:11 +02:00
posix lib.FileContext.put(): Change param mode type str -> int 2026-04-18 10:43:31 +02:00
projects lib.ExecContext.run(), .sudo(): Rename env 2026-04-19 14:36:50 +02:00
secrets cmds.secrets: Make commands work remotely 2026-04-18 10:43:31 +02:00
__init__.py cmds/__init__.py: Make class loading dynamic 2026-03-17 10:44:24 +01:00
Cmd.py App, .cmds.Cmd: Add .distro property 2026-03-07 14:35:54 +01:00
CmdDistro.py App, .cmds.Cmd: Add .distro property 2026-03-07 14:35:54 +01:00
CmdPosix.py cmds.CmdPosix: Add command 2026-04-16 12:56:22 +02:00
CmdProjects.py jw-pkg.sh: Print help for missing subcommands 2026-02-24 14:52:25 +01:00
CmdSecrets.py cmds.CmdSecrets: Add command class + subcommands 2026-03-07 21:51:17 +01:00
Makefile jw.build.cmds: Move build.cmds -> cmds.projects 2026-01-26 17:58:23 +01:00