Skip to content
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

chocolateyInstall.ps1: use command continuation for long lines #165

Open
dtgm opened this issue Mar 27, 2016 · 0 comments
Open

chocolateyInstall.ps1: use command continuation for long lines #165

dtgm opened this issue Mar 27, 2016 · 0 comments

Comments

@dtgm
Copy link
Owner

dtgm commented Mar 27, 2016

Example

Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" "$url64" -validExitCodes $validExitCodes -checksum "$checksum" -checksumType "$checksumType" -checksum64 "$checksum64" -checksumType64 "$checksumType64"

Use command continuation for long lines
Install-ChocolateyPackage "$packageName" `
                          "$installerType" `
"$silentArgs" `
"$url" `
"$url64" `
-validExitCodes $validExitCodes `
-checksum "$checksum" `
-checksumType "$checksumType" `
-checksum64 "$checksum64" `
-checksumType64 "$checksumType64"
Use named parameters
Install-ChocolateyPackage -PackageName "$packageName" `
                          -FileType "$installerType" `
                          -SilentArgs "$silentArgs" `
                          -Url "$url" `
                          -Url64bit "$url64" `
                          -ValidExitCodes $validExitCodes `
                          -Checksum "$checksum" `
                          -ChecksumType "$checksumType" `
                          -Checksum64 "$checksum64" `
                          -ChecksumType64 "$checksumType64"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant