Skip to content

Create warning when using CMD or PowerShell #1252

@hohwille

Description

@hohwille

We keep on telling our users that they should use bash (or zsh) because:

  • bash is available and common on every OS (Windows via Git-Bash, Linux by default, MacOS by default)
  • bash scripting is well established
  • CMD scripting is hell
  • PowerShell has cool concepts but turned out to never reach the breakthrough. Further it has a lot of limitations (*.ps1 not executed due to security while *.bat always is, the security idea behind this is nice but makes PowerShell not an option for seamless scripting, etc. - there are also bugs in edge-cases)

As suggested by @maybeec we should simply log a warning end the end of our wrapper script that users should get used to bash and stop using CMD or PowerShell when using IDEasy CLI.
IMHO this is the best way to "spread the word".
We still give compatibility as possible and Windows users that insist on using CMD or PowerShell may still ignore it but then they cannot say they did not knew and had never been warned.

Acceptance criteria:

  • When calling IDEasy CLI from CMD or PowerShell the user should get the following warning:
Please use (git-)bash (integrated in Windows Terminal) for full IDEasy support:
https://github.com/devonfw/IDEasy/blob/main/documentation/advanced-tooling-windows.adoc#tabs-for-shells

Hint

The functionality needs to be integrated here:


and:

Metadata

Metadata

Assignees

Labels

CLIIDEasy command-line-interface (parsing args, etc.)CMDSupport in Windows CMD/MSDOS via ide.batPowerShellWindows PowerShell integration and supportenhancementNew feature or requestwindowsspecific for Microsoft Windows OS

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions