From c182ed6a91f078cdcb15537c4794fea892d06fa4 Mon Sep 17 00:00:00 2001 From: Miodrag Milic Date: Sun, 23 Oct 2016 16:53:43 +0200 Subject: [PATCH] doc --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7b5e50d..e839e57 100644 --- a/README.md +++ b/README.md @@ -31,22 +31,26 @@ In a package directory run: `Test-Package`. Run from within the directory of the package to update that package: - cd - ./update.ps1 + cd + ./update.ps1 -If this script is missing, the package is not automatic. Set `$au_Force = $true` prior to script call to update the package even if no new version is found. +If this script is missing, the package is not automatic. +Set `$au_Force = $true` prior to script call to update the package even if no new version is found. ### Multiple packages To update all packages run `./update_all.ps1`. It accepts few options: - ./update_all.ps1 -Name a* #Update all packages which name start with letter 'a' - ./update_all.ps1 -ForcedPackages 'cpu-z copyq' #Update all packages and force cpu-z and copyq - ./update_all.ps1 -ForcedPackages 'copyq:1.2.3' #Update all packages but force copyq and use explicit version - ./update_all.ps1 -Root 'c:\packages' #Update all packages in the c:\packages folder +```powershell + ./update_all.ps1 -Name a* # Update all packages which name start with letter 'a' + ./update_all.ps1 -ForcedPackages 'cpu-z copyq' # Update all packages and force cpu-z and copyq + ./update_all.ps1 -ForcedPackages 'copyq:1.2.3' # Update all packages but force copyq with explicit version + ./update_all.ps1 -Root 'c:\packages' # Update all packages in the c:\packages folder +``` The following global variables influence the execution of `update_all.ps1` script if set prior to the call: +```powershell $au_NoPlugins = $true #Do not execute plugins $au_Push = $false #Do not push to chocolatey