mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-26 16:48:54 +01:00
Merge branch 'master' of github.com:fleschutz/PowerShell
This commit is contained in:
commit
66131f8157
@ -63,7 +63,7 @@ How to write good PowerShell Scripts?
|
|||||||
PowerShell scripts should follow the 11 golden rules:
|
PowerShell scripts should follow the 11 golden rules:
|
||||||
|
|
||||||
1. the filename is named using the `<verb>-<object>.ps1` scheme
|
1. the filename is named using the `<verb>-<object>.ps1` scheme
|
||||||
2. encoding is in UTF-8 BOM to support Unicode characters
|
2. encoding is in UTF-8-BOM to support Unicode characters
|
||||||
3. the script has execute file permissions: chmod a+rx <file> (for Linux support)
|
3. the script has execute file permissions: chmod a+rx <file> (for Linux support)
|
||||||
4. the first line reads `#!/usr/bin/pwsh` (for Linux support)
|
4. the first line reads `#!/usr/bin/pwsh` (for Linux support)
|
||||||
5. provide a comment-based help with syntax, description, link, author, and license
|
5. provide a comment-based help with syntax, description, link, author, and license
|
||||||
|
Loading…
Reference in New Issue
Block a user