devonfw / IDEasy

Tool to automate the setup and updates of a development environment for any project (Successor of devonfw-ide).
Apache License 2.0
7 stars 18 forks source link

Log command before asking user for sudo password #415

Open hohwille opened 1 week ago

hohwille commented 1 week ago

From Review of PR #409: What I think we need to consider for runWithPackageManager is that we need to add logging of the executed command in ProcessContext before actually executing the process. By default this should happen on trace level but it should be possible to configure this as parameter to run method or we can alternatively create a method for it. Then runWithPackageManager should change that log-level to info. A linux user cannot be blindly prompted for its root password from sudo without knowing what is actually happening and what command is to be executed.