1
1
// Copyright © 2017 - 2018 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");
5
5
// you may not use this file except in compliance with the License.
6
- //
6
+ //
7
7
// You may obtain a copy of the License at
8
- //
8
+ //
9
9
// http://www.apache.org/licenses/LICENSE-2.0
10
- //
10
+ //
11
11
// Unless required by applicable law or agreed to in writing, software
12
12
// distributed under the License is distributed on an "AS IS" BASIS,
13
13
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -52,7 +52,7 @@ private ICommand find_command(ChocolateyConfiguration config, Container containe
52
52
//todo add a search among other location/extensions for the command
53
53
if ( ! string . IsNullOrWhiteSpace ( config . CommandName ) )
54
54
{
55
- throw new Exception ( @"Could not find a command registered that meets '{0}'.
55
+ throw new Exception ( @"Could not find a command registered that meets '{0}'.
56
56
Try choco -? for command reference/help." . format_with ( config . CommandName ) ) ;
57
57
}
58
58
@@ -100,7 +100,7 @@ Custom unofficial builds are not allowed by default.
100
100
{
101
101
this . Log ( ) . Warn ( config . RegularOutput ? ChocolateyLoggers . Important : ChocolateyLoggers . LogFileOnly , @"
102
102
Chocolatey is not an official build (bypassed with --allow-unofficial).
103
- If you are seeing this message and it is not expected, your system may
103
+ If you are seeing this message and it is not expected, your system may
104
104
now be in a bad state. Only official builds are to be trusted.
105
105
"
106
106
) ;
@@ -280,7 +280,7 @@ public int count(ChocolateyConfiguration config, Container container, bool isCon
280
280
public void warn_when_admin_needs_elevation ( ChocolateyConfiguration config )
281
281
{
282
282
if ( config . HelpRequested ) return ;
283
-
283
+
284
284
// skip when commands will set or for background mode
285
285
if ( ! config . Features . ShowNonElevatedWarnings ) return ;
286
286
@@ -301,11 +301,11 @@ public void warn_when_admin_needs_elevation(ChocolateyConfiguration config)
301
301
this . Log ( ) . Warn ( ChocolateyLoggers . Important , @"
302
302
You may experience errors - many functions/packages
303
303
require admin rights. Only advanced users should run choco w/out an
304
- elevated shell. When you open the command shell, you should ensure
305
- that you do so with ""Run as Administrator"" selected. If you are
304
+ elevated shell. When you open the command shell, you should ensure
305
+ that you do so with ""Run as Administrator"" selected. If you are
306
306
attempting to use Chocolatey in a non-administrator setting, you
307
307
must select a different location other than the default install
308
- location. See
308
+ location. See
309
309
https://chocolatey.org/install#non-administrative-install for details.
310
310
" ) ;
311
311
var selection = InteractivePrompt . prompt_for_confirmation ( @"
0 commit comments