-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create formal, public and documented module #2733
Comments
Refactoring Scoop to use Pascal case in general would be better. Since it's the preferred style for PowerShell. This will be a lot of work, but some changes that have to be added, exception handling and proper state handling for failed app installations, require a complete rewrite anyway. Adding wrappers might be useful for writing tests and transition to the refactored code. |
Regarding the |
I was just curious. But for example. iCue. it's Corsair's utitlity for peripherals, which is need to be installed due to some services, hooks and registry configurations for proper functionality. |
@r15ch13 Here is an example. wireguard must be installed because it needs to install wintun. |
While writing manifests, you could use some scoop's internal functions inside install scripts (
pre_install
,post_install
,script
), but they are not documented, use poor parameters, which are booleans (not switches), and you need to go to github, search for name, through it's scoop's code almost everytime to look for parameters, which then look likeextract_7zip $file $path $false
instead of more intuitive wayScoop-Extract7zip $file $path -Recurse
(with positional parameters, otherwise, some-Archive $file -Destination $path -Recurse
).There should be some wrapper module, which would be properly documented (wiki, and ps1 files). All of that functions will only be oneliners with param block and some defaults
or
rewrite scoop's files to match single style (It's code is pretty mess with naming).
Some functions does not return values from functions, some have. Newly added functions are Pascal-Case named, while od ones are named using snake_case.
Pascal case in lots of snake_cases, Function with return, Function without return
Example:
Also.
Why is
msi
block Deprecated? Sure, you can extract MSI, but there are some applications, which needs to be installed (initializing some drivers, services, ...) and marking it as deprecated is wrong. It's forcing maintainers to think that support of msiexec will be removed and manifest will be broken. And intead of using supported json propertiesfile
,args
you need to write script block with custom call to msiexec.The text was updated successfully, but these errors were encountered: