about_PowerTab_context.help.txt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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