K2s
K2s copied to clipboard
Command install: Eliminate the double powershell code parts
#265 Child of Eliminate the double powershell code parts...
Functionality: k2s install ...
k2s install command
Eliminate double code parts in high level scripts used Move those functionalities under the PowerShell modules and scripts -> lib
Steps:
- use a branch, keep the branches for the issue as short living as possible (often merges to main)
- keep for start the high level scripts which are called from k2s cli directly
- in each high level script sync first the functionality within separate modules from lib
- delete afterwards the functionality from the high level scripts, eliminate with this the double code
- remove the common global variables and global functions parts from the high level scripts
- use at the end high level scripts from scripts which are using exclusively lib modules