Use PowerShell module and improved xtchain ps1 #11
Reference in New Issue
Block a user
No description provided.
Delete Branch "perikiyoxd/xtchain:next-powershell-module"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reworked the
xtclib.ps1
to be a module instead (xtclib.psm1
), and a quick rework of thextchain.ps1
to follow coding guidelines for PowerShellI have reviewed this pull request and decided to close it. The changes do not actually solve the original problem. They mainly rely on
Import-Module $modulePath -Force -Global
to make the functions global so they persist after the script finishes. That leaves no clean way to unload the environment except by closing the terminal, which is not acceptable. On top of that, when you run the script by double-clicking it, the process still exits with the terminal anyway, so it is not actually a real solution.In addition, the PR is not limited to just making functions global. It essentially refactors the code and even renames commands. While aliases are added, the help text marks them as legacy, and the renamed commands break compatibility with the Linux version of the environment, which uses the original names. Maintaining command compatibility across platforms is important, so this is another reason why the PR can not be accepted.
For these reasons, this pull request is being closed.
Pull request closed