< Back

Add-LocationToStack

Sat Jan 18, 2020 9:47 am

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