@@ -3,8 +3,11 @@ source: prql-compiler/prqlc/tests/test.rs
3
3
info :
4
4
program : prqlc
5
5
args :
6
+ - " --color=never"
6
7
- shell - completion
7
8
- powershell
9
+ env :
10
+ CLICOLOR_FORCE : " "
8
11
-- -
9
12
success : true
10
13
exit_code : 0
@@ -39,8 +42,7 @@ Register-ArgumentCompleter -Native -CommandName 'prqlc' -ScriptBlock {
39
42
[CompletionResult ]::new (' --version' , ' version' , [CompletionResultType ]::ParameterName , ' Print version' )
40
43
[CompletionResult ]::new (' parse' , ' parse' , [CompletionResultType ]::ParameterValue , ' Parse into PL AST' )
41
44
[CompletionResult ]::new (' fmt' , ' fmt' , [CompletionResultType ]::ParameterValue , ' Parse & generate PRQL code back' )
42
- [CompletionResult ]::new (' annotate' , ' annotate' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & combine source with comments annotating relation type' )
43
- [CompletionResult ]::new (' debug' , ' debug' , [CompletionResultType ]::ParameterValue , ' Parse & resolve, but don' ' t lower into RQ' )
45
+ [CompletionResult ]::new (' debug' , ' debug' , [CompletionResultType ]::ParameterValue , ' Commands for meant for debugging, prone to change' )
44
46
[CompletionResult ]::new (' resolve' , ' resolve' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & lower into RQ' )
45
47
[CompletionResult ]::new (' sql:preprocess' , ' sql:preprocess' , [CompletionResultType ]::ParameterValue , ' Parse, resolve, lower into RQ & preprocess SRQ' )
46
48
[CompletionResult ]::new (' sql:anchor' , ' sql:anchor' , [CompletionResultType ]::ParameterValue , ' Parse, resolve, lower into RQ & preprocess & anchor SRQ' )
@@ -64,18 +66,53 @@ Register-ArgumentCompleter -Native -CommandName 'prqlc' -ScriptBlock {
64
66
[CompletionResult ]::new (' --help' , ' help' , [CompletionResultType ]::ParameterName , ' Print help' )
65
67
break
66
68
}
67
- ' prqlc;annotate ' {
69
+ ' prqlc;debug ' {
68
70
[CompletionResult ]::new (' --color' , ' color' , [CompletionResultType ]::ParameterName , ' Controls when to use color' )
69
71
[CompletionResult ]::new (' -h' , ' h' , [CompletionResultType ]::ParameterName , ' Print help' )
70
72
[CompletionResult ]::new (' --help' , ' help' , [CompletionResultType ]::ParameterName , ' Print help' )
73
+ [CompletionResult ]::new (' semantics' , ' semantics' , [CompletionResultType ]::ParameterValue , ' Parse & resolve, but don' ' t lower into RQ' )
74
+ [CompletionResult ]::new (' eval' , ' eval' , [CompletionResultType ]::ParameterValue , ' Parse & evaluate expression down to a value' )
75
+ [CompletionResult ]::new (' annotate' , ' annotate' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & combine source with comments annotating relation type' )
76
+ [CompletionResult ]::new (' help' , ' help' , [CompletionResultType ]::ParameterValue , ' Print this message or the help of the given subcommand(s)' )
71
77
break
72
78
}
73
- ' prqlc;debug' {
79
+ ' prqlc;debug;semantics' {
80
+ [CompletionResult ]::new (' --color' , ' color' , [CompletionResultType ]::ParameterName , ' Controls when to use color' )
81
+ [CompletionResult ]::new (' -h' , ' h' , [CompletionResultType ]::ParameterName , ' Print help' )
82
+ [CompletionResult ]::new (' --help' , ' help' , [CompletionResultType ]::ParameterName , ' Print help' )
83
+ break
84
+ }
85
+ ' prqlc;debug;eval' {
86
+ [CompletionResult ]::new (' --color' , ' color' , [CompletionResultType ]::ParameterName , ' Controls when to use color' )
87
+ [CompletionResult ]::new (' -h' , ' h' , [CompletionResultType ]::ParameterName , ' Print help (see more with ' ' --help' ' )' )
88
+ [CompletionResult ]::new (' --help' , ' help' , [CompletionResultType ]::ParameterName , ' Print help (see more with ' ' --help' ' )' )
89
+ break
90
+ }
91
+ ' prqlc;debug;annotate' {
74
92
[CompletionResult ]::new (' --color' , ' color' , [CompletionResultType ]::ParameterName , ' Controls when to use color' )
75
93
[CompletionResult ]::new (' -h' , ' h' , [CompletionResultType ]::ParameterName , ' Print help' )
76
94
[CompletionResult ]::new (' --help' , ' help' , [CompletionResultType ]::ParameterName , ' Print help' )
77
95
break
78
96
}
97
+ ' prqlc;debug;help' {
98
+ [CompletionResult ]::new (' semantics' , ' semantics' , [CompletionResultType ]::ParameterValue , ' Parse & resolve, but don' ' t lower into RQ' )
99
+ [CompletionResult ]::new (' eval' , ' eval' , [CompletionResultType ]::ParameterValue , ' Parse & evaluate expression down to a value' )
100
+ [CompletionResult ]::new (' annotate' , ' annotate' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & combine source with comments annotating relation type' )
101
+ [CompletionResult ]::new (' help' , ' help' , [CompletionResultType ]::ParameterValue , ' Print this message or the help of the given subcommand(s)' )
102
+ break
103
+ }
104
+ ' prqlc;debug;help;semantics' {
105
+ break
106
+ }
107
+ ' prqlc;debug;help;eval' {
108
+ break
109
+ }
110
+ ' prqlc;debug;help;annotate' {
111
+ break
112
+ }
113
+ ' prqlc;debug;help;help' {
114
+ break
115
+ }
79
116
' prqlc;resolve' {
80
117
[CompletionResult ]::new (' --format' , ' format' , [CompletionResultType ]::ParameterName , ' format' )
81
118
[CompletionResult ]::new (' --color' , ' color' , [CompletionResultType ]::ParameterName , ' Controls when to use color' )
@@ -128,8 +165,7 @@ Register-ArgumentCompleter -Native -CommandName 'prqlc' -ScriptBlock {
128
165
' prqlc;help' {
129
166
[CompletionResult ]::new (' parse' , ' parse' , [CompletionResultType ]::ParameterValue , ' Parse into PL AST' )
130
167
[CompletionResult ]::new (' fmt' , ' fmt' , [CompletionResultType ]::ParameterValue , ' Parse & generate PRQL code back' )
131
- [CompletionResult ]::new (' annotate' , ' annotate' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & combine source with comments annotating relation type' )
132
- [CompletionResult ]::new (' debug' , ' debug' , [CompletionResultType ]::ParameterValue , ' Parse & resolve, but don' ' t lower into RQ' )
168
+ [CompletionResult ]::new (' debug' , ' debug' , [CompletionResultType ]::ParameterValue , ' Commands for meant for debugging, prone to change' )
133
169
[CompletionResult ]::new (' resolve' , ' resolve' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & lower into RQ' )
134
170
[CompletionResult ]::new (' sql:preprocess' , ' sql:preprocess' , [CompletionResultType ]::ParameterValue , ' Parse, resolve, lower into RQ & preprocess SRQ' )
135
171
[CompletionResult ]::new (' sql:anchor' , ' sql:anchor' , [CompletionResultType ]::ParameterValue , ' Parse, resolve, lower into RQ & preprocess & anchor SRQ' )
@@ -146,10 +182,19 @@ Register-ArgumentCompleter -Native -CommandName 'prqlc' -ScriptBlock {
146
182
' prqlc;help;fmt' {
147
183
break
148
184
}
149
- ' prqlc;help;annotate' {
185
+ ' prqlc;help;debug' {
186
+ [CompletionResult ]::new (' semantics' , ' semantics' , [CompletionResultType ]::ParameterValue , ' Parse & resolve, but don' ' t lower into RQ' )
187
+ [CompletionResult ]::new (' eval' , ' eval' , [CompletionResultType ]::ParameterValue , ' Parse & evaluate expression down to a value' )
188
+ [CompletionResult ]::new (' annotate' , ' annotate' , [CompletionResultType ]::ParameterValue , ' Parse, resolve & combine source with comments annotating relation type' )
150
189
break
151
190
}
152
- ' prqlc;help;debug' {
191
+ ' prqlc;help;debug;semantics' {
192
+ break
193
+ }
194
+ ' prqlc;help;debug;eval' {
195
+ break
196
+ }
197
+ ' prqlc;help;debug;annotate' {
153
198
break
154
199
}
155
200
' prqlc;help;resolve' {
0 commit comments