< Back
Add-LocationToStack
Post
NAME Add-LocationToStack
SYNOPSIS
Adds path to the location stack
SYNTAX
Add-LocationToStack [[-id] <String>] [[-location] <String>] [-force] [<CommonParameters>]
DESCRIPTION
Adds a directory path specified by <-location> parameter to $LocationStack hashtable, with key defined by <-id>
parameter.
If path is not specified, current directory path is used.
If path or id is already present in $LocationStack, use <-force> to overwrite
PARAMETERS
-id <String>
Required? false
Position? 1
Default value $(throw 'Mandatory parameter not provided: <id>.')
Accept pipeline input? false
Accept wildcard characters? false
-location <String>
Required? false
Position? 2
Default value $PWD.Path
Accept pipeline input? false
Accept wildcard characters? false
-force [<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
RELATED LINKS
https://github.com/PavelStsefanovich/LocationStack
SYNOPSIS
Adds path to the location stack
SYNTAX
Add-LocationToStack [[-id] <String>] [[-location] <String>] [-force] [<CommonParameters>]
DESCRIPTION
Adds a directory path specified by <-location> parameter to $LocationStack hashtable, with key defined by <-id>
parameter.
If path is not specified, current directory path is used.
If path or id is already present in $LocationStack, use <-force> to overwrite
PARAMETERS
-id <String>
Required? false
Position? 1
Default value $(throw 'Mandatory parameter not provided: <id>.')
Accept pipeline input? false
Accept wildcard characters? false
-location <String>
Required? false
Position? 2
Default value $PWD.Path
Accept pipeline input? false
Accept wildcard characters? false
-force [<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
RELATED LINKS
https://github.com/PavelStsefanovich/LocationStack