Create-FileFunction

Create-FileFunction
NAME
    Create-FileFunction
    
SYNOPSIS
    Creates one or multiple functions in new or existing file.
    
    
SYNTAX
    Create-FileFunction [[-Function] <String[]>] [[-File] <String>] [-CommentBasedHelp] [<CommonParameters>]
    
    
DESCRIPTION
    Creates functions structure in new file or appends it to existing one. You can specify file name and function(s) name(s). 
    It is possible to attach Comment Based Help section by including proper parameter.
    

PARAMETERS
    -Function <String[]>
        Function name. It coult be a list of function.
        
        Required?                    false
        Position?                    1
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -File <String>
        File name.
        
        Required?                    false
        Position?                    2
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -CommentBasedHelp [<SwitchParameter>]
        Adds Comment Based Help to functions.
        
        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>Create-FileFunction NewFunc NewFile
    
    
    
    
    
    
    -------------------------- EXAMPLE 2 --------------------------
    
    PS>Create-FileFunction NewFunc1,NewFunc2,NewFunc3 NewFile 
    
    
    
    
    
    
    -------------------------- EXAMPLE 3 --------------------------
    
    PS>Create-FileFunction NewFunc
    
    Appends one function to current active file.
    
    
    
    
    -------------------------- EXAMPLE 4 --------------------------
    
    PS>Create-FileFunction NewFunc1,NewFunc2,NewFunc3
    
    Appends multiple functions to current active file.
    
    
    
    
    
RELATED LINKS
    https://ziolkowsky.wordpress.com/2022/04/16/create-filefunction/
    https://github.com/ziolkowsky/ShellPowerFramework

0 Comments on “Create-FileFunction

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany.

*