NAME
Set-File
SYNOPSIS
Creates file and appends function structure.
SYNTAX
Set-File [[-File] <String>] [[-FunctionName] <String>] [-Append] [-CommentBasedHelp] [<CommonParameters>]
DESCRIPTION
Creates file and appends function structure if proper parameters are included.
PARAMETERS
-File <String>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FunctionName <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Append [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-CommentBasedHelp [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author : Sebastian Ziółkowski
Website: ziolkowsky.wordpress.com
GitHub : github.com/ziolkowsky
-------------------------- EXAMPLE 1 --------------------------
PS>Set-File TestFile
-------------------------- EXAMPLE 2 --------------------------
PS>Set-File TestFile -Force
Creates new file even if TestFile already exists.
-------------------------- EXAMPLE 3 --------------------------
PS>Set-File TestFile New-Function
Creates file with function in it. Appends to existing file.
-------------------------- EXAMPLE 4 --------------------------
PS>Set-File TestFile New-Function -CommentBasedHelp
Creates file with function and comment based help section. Appends to existing file.
Reloads current active tab.
RELATED LINKS
https://ziolkowsky.wordpress.com/2022/04/16/set-file/
https://github.com/ziolkowsky/ShellPowerFramework
Dodaj komentarz