about_PowerTab_context.help.txt
TOPIC
about_PowerTab_context SHORT DESCRIPTION Describes how PowerTab understands the context of a tab expansion request. LONG DESCRIPTION [Repurposing this topic.] CONTEXT OBJECT The context object represents PowerTab's understanding of the current command line. TraceId : <System.Guid> The cross referencing ID to messages in the PowerTab trace log. Line : <String> The full command line. LastWord : <String> The last word, subject of the tab expansion. LastToken : <System.Management.Automation.PSToken> The last token parsed from the command line, may not be a token of the last word. Command : <String> The name of the command that PowerTab has identified as being the current context (see isCommandMode). Parameter : <String> The name of the parameter that PowerTab has identified as being the current context of the last word (see isParameterValue). Argument : <String> The value entered so far for the parameter, typically this is the last word. PositionalParameter : <Int> The index of the last positional parameter. PositionalParameters : <String[]> The values of all positional parameters entered. OtherParameters : <Hashtable> A collection of the other identified parameters to the current command and their values, from the command line. isCommandMode : <Bool> Identifies the current context as a command to be run. isAssignment : <Bool> If the result of the commandline will be assigned to a variable (reserved for future functionality). isParameterValue : <Bool> Identifies the current context of the last word as being a value to a parameter. CommandInfo : <System.Management.Automation.CmdletInfo> Standard PowerShell info object for the identified command. Examples: TraceId : 96c69b40-7ea0-4d21-99d5-3ca6c9261595 Line : Get-Process d* -ComputerName LastWord : LastToken : CommandParameter Command : Get-Process Parameter : ComputerName Argument : PositionalParameter : 0 PositionalParameters : {d*} OtherParameters : {} isCommandMode : True isAssignment : False isParameterValue : True CommandInfo : Get-Process TraceId : 23e8943b-cc89-4043-905a-6e5c0b5ec200 Line : Get-Process -Name d* -ErrorVariable e LastWord : e LastToken : CommandArgument Command : Get-Process Parameter : ErrorVariable Argument : e PositionalParameter : -1 PositionalParameters : {} OtherParameters : {Name} isCommandMode : True isAssignment : False isParameterValue : True CommandInfo : Get-Process SEE ALSO http://powertab.codeplex.com/documentation |