1
- // Copyright © 2017 - 2021 Chocolatey Software, Inc
1
+ // Copyright © 2017 - 2021 Chocolatey Software, Inc
2
2
// Copyright © 2011 - 2017 RealDimensions Software, LLC
3
3
//
4
4
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -166,6 +166,16 @@ and switches with one dash (`-`). For more details, see
166
166
the command reference (`choco -?`).
167
167
" ) ;
168
168
169
+ "chocolatey" . Log ( ) . Info ( ChocolateyLoggers . Important , "Usage" ) ;
170
+ // TODO: use command name in usage and examples, instead of hard
171
+ // coding the names?
172
+ "chocolatey" . Log ( ) . Info ( @"
173
+ choco find <filter> [<options/switches>]
174
+ choco list <filter> [<options/switches>]
175
+ choco search <filter> [<options/switches>]
176
+ clist <filter> [<options/switches>] (DEPRECATED, will be removed in v2.0.0)
177
+ " ) ;
178
+
169
179
if ( configuration . CommandName . is_equal_to ( "list" ) )
170
180
{
171
181
"chocolatey" . Log ( ) . Warn ( ChocolateyLoggers . Important , "DEPRECATION NOTICE" ) ;
@@ -177,18 +187,12 @@ Starting in v2.0.0 the list command will be made local only and will only
177
187
178
188
To avoid breakage, change any calls made to remote sources to use `choco search`
179
189
or `choco find` instead. These will continue to work as usual.
180
- " ) ;
181
- }
182
190
183
- "chocolatey" . Log ( ) . Info ( ChocolateyLoggers . Important , "Usage" ) ;
184
- // TODO: use command name in usage and examples, instead of hard
185
- // coding the names?
186
- "chocolatey" . Log ( ) . Info ( @"
187
- choco find <filter> [<options/switches>]
188
- choco list <filter> [<options/switches>]
189
- choco search <filter> [<options/switches>]
190
- clist <filter> [<options/switches>]
191
+ Starting in v2.0.0 the shortcut `clist` will be removed and can not be used
192
+ to list package anymore. We recommend you make sure that you always
193
+ use the full command going forward (`choco list`).
191
194
" ) ;
195
+ }
192
196
193
197
"chocolatey" . Log ( ) . Info ( ChocolateyLoggers . Important , "Examples" ) ;
194
198
"chocolatey" . Log ( ) . Info ( @"
0 commit comments