Skip to content

Commit 07f4584

Browse files
authored
Merge pull request #1428 from filipw/feature/climutable
decorated all *Params helper records with [<CLIMutable>]
2 parents 3121e61 + c1f087b commit 07f4584

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+86
-0
lines changed

src/app/FakeLib/AndroidPublisher.fs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type AndroidPublishConfig = {
3434
Apk: string;
3535
}
3636

37+
[<CLIMutable>]
3738
type AndroidPublishParams = {
3839
Track: string;
3940
Config: AndroidPublishConfig;

src/app/FakeLib/AppVeyor.fs

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ let SetVariable name value =
188188
type ArtifactType = Auto | WebDeployPackage
189189

190190
/// AppVeyor parameters for artifact push
191+
[<CLIMutable>]
191192
type PushArtifactParams =
192193
{
193194
/// The full local path to the artifact

src/app/FakeLib/AssemblyInfoHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type CodeLanguage =
1515
| FSharp
1616
| VisualBasic
1717

18+
[<CLIMutable>]
1819
type AssemblyInfoParams =
1920
{ OutputFileName : string
2021
ComVisible : bool option

src/app/FakeLib/AzureCloudServices.fs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ open System.IO
55
open Fake
66

77
/// Configuration details for packaging cloud services.
8+
[<CLIMutable>]
89
type PackageCloudServiceParams =
910
{ /// The name of the Cloud Service.
1011
CloudService : string

src/app/FakeLib/AzureHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ open Fake.ProcessHelper
55
open System
66

77
/// A type for the controlling parameter
8+
[<CLIMutable>]
89
type AzureEmulatorParams = {
910
CSRunToolPath:string
1011
DSInitToolPath:string

src/app/FakeLib/BowerHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type BowerCommand =
2424
| Custom of string
2525

2626
/// The Bower parameter type
27+
[<CLIMutable>]
2728
type BowerParams =
2829
{ Src: string
2930
BowerFilePath: string

src/app/FakeLib/CMake.fs

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type CMakeVariable = {
2323
}
2424

2525
/// The CMakeGenerate parameter type.
26+
[<CLIMutable>]
2627
type CMakeGenerateParams = {
2728
/// The location of the CMake executable. Automatically found if null or empty.
2829
ToolPath:string
@@ -65,6 +66,7 @@ type CMakeGenerateParams = {
6566
}
6667

6768
/// The CMakeBuild parameter type.
69+
[<CLIMutable>]
6870
type CMakeBuildParams = {
6971
/// The location of the CMake executable. Automatically found if null or empty.
7072
ToolPath:string

src/app/FakeLib/ChocoHelper.fs

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module Choco =
2121
| Sha512
2222

2323
/// The choco install parameter type.
24+
[<CLIMutable>]
2425
type ChocoInstallParams = {
2526
/// Version of the package
2627
/// Equivalent to the `--version <version>` option.
@@ -65,6 +66,7 @@ module Choco =
6566
}
6667

6768
/// The choco pack parameter type.
69+
[<CLIMutable>]
6870
type ChocoPackParams = {
6971
/// The version you would like to insert into the package.
7072
/// Equivalent to the `--version <version>` option.
@@ -194,6 +196,7 @@ module Choco =
194196
}
195197

196198
/// The choco push parameter type.
199+
[<CLIMutable>]
197200
type ChocoPushParams = {
198201
/// The source we are pushing the package to. Default: "https://chocolatey.org/"
199202
/// Equivalent to the `--source <source>` option.

src/app/FakeLib/DocFxHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Fake.DocFxHelper
44
open System
55

66
/// The parameter type for DocFx.
7+
[<CLIMutable>]
78
type DocFxParams =
89
{ /// The tool path - FAKE tries to find docfx.exe automatically in any sub folder.
910
ToolPath : string

src/app/FakeLib/DocuHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Fake.DocuHelper
55
open System
66

77
/// The parameter type for docu.
8+
[<CLIMutable>]
89
type DocuParams =
910
{ /// The tool path - FAKE tries to find docu.exe automatically in any sub folder.
1011
ToolPath : string

src/app/FakeLib/DotCover.fs

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type DotCoverReportType =
1616
| NDependXml = 3
1717

1818
/// The dotCover parameter type for running coverage
19+
[<CLIMutable>]
1920
type DotCoverParams =
2021
{ ToolPath: string
2122
WorkingDir: string
@@ -41,6 +42,7 @@ let DotCoverDefaults =
4142
CustomParameters = ""
4243
ErrorLevel = ErrorLevel.Error}
4344

45+
[<CLIMutable>]
4446
type DotCoverMergeParams =
4547
{ ToolPath: string
4648
WorkingDir: string
@@ -57,6 +59,7 @@ let DotCoverMergeDefaults =
5759
TempDir = ""
5860
CustomParameters = "" }
5961

62+
[<CLIMutable>]
6063
type DotCoverReportParams =
6164
{ ToolPath: string
6265
WorkingDir: string

src/app/FakeLib/DotNetCLIHelper.fs

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ let isInstalled() =
3333
with _ -> false
3434

3535
/// DotNet parameters
36+
[<CLIMutable>]
3637
type CommandParams = {
3738
/// ToolPath - usually just "dotnet"
3839
ToolPath: string
@@ -76,6 +77,7 @@ let RunCommand (setCommandParams: CommandParams -> CommandParams) args =
7677
failwithf "dotnet command failed on %s" args
7778

7879
/// DotNet restore parameters
80+
[<CLIMutable>]
7981
type RestoreParams = {
8082
/// ToolPath - usually just "dotnet"
8183
ToolPath: string
@@ -138,6 +140,7 @@ let Restore (setRestoreParams: RestoreParams -> RestoreParams) =
138140
failwithf "Restore failed on %s" args
139141

140142
/// DotNet build parameters
143+
[<CLIMutable>]
141144
type BuildParams = {
142145
/// ToolPath - usually just "dotnet"
143146
ToolPath: string
@@ -211,6 +214,7 @@ let Build (setBuildParams: BuildParams -> BuildParams) =
211214

212215

213216
/// DotNet test parameters
217+
[<CLIMutable>]
214218
type TestParams = {
215219
/// ToolPath - usually just "dotnet"
216220
ToolPath: string
@@ -284,6 +288,7 @@ let Test (setTestParams: TestParams -> TestParams) =
284288

285289

286290
/// DotNet pack parameters
291+
[<CLIMutable>]
287292
type PackParams = {
288293
/// ToolPath - usually just "dotnet"
289294
ToolPath: string
@@ -356,6 +361,7 @@ let Pack (setPackParams: PackParams -> PackParams) =
356361
failwithf "Pack failed on %s" args
357362

358363
/// DotNet publish parameters
364+
[<CLIMutable>]
359365
type PublishParams = {
360366
/// ToolPath - usually just "dotnet"
361367
ToolPath: string

src/app/FakeLib/DynamicsCRMHelper.fs

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type PackageType =
2626
| Both -> "/p:Both"
2727

2828
/// Parameters for executing Dynamics CRM Helper functions
29+
[<CLIMutable>]
2930
type DynamicsCrmHelperParams =
3031
{
3132
/// Url of CRM Organization / Discovery Service URL if using AllOrganizations
@@ -70,6 +71,7 @@ let DynamicsCrmHelperDefaults =
7071
}
7172

7273
/// Parameters for invoking Solution Packager
74+
[<CLIMutable>]
7375
type SolutionPackagerParams =
7476
{
7577
/// Action to start, either pack or extract

src/app/FakeLib/DynamicsNavHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type NavisionServerType =
6565
| NavisionServerType.NativeServer -> "NAVISION"
6666

6767
/// A parameter type to interact with Dynamics NAV
68+
[<CLIMutable>]
6869
type DynamicsNavParams =
6970
{ ToolPath : string
7071
ServerName : string

src/app/FakeLib/FXCopHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type FxCopErrorLevel =
1919
| DontFailBuild = 0
2020

2121
/// Parameter type for the FxCop tool
22+
[<CLIMutable>]
2223
type FxCopParams =
2324
{ ApplyOutXsl : bool
2425
DirectOutputToConsole : bool

src/app/FakeLib/FixieHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ open System.IO
66
open System.Text
77

88
/// Parameter type to configure the Fixie runner
9+
[<CLIMutable>]
910
type FixieParams = {
1011
/// FileName of the Fixie runner
1112
ToolPath: string

src/app/FakeLib/FscHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type FscPlatform =
2727

2828
/// 'fsc.exe' command line parameters
2929
[<Obsolete "Use FscHelper.FscParam instead">]
30+
[<CLIMutable>]
3031
type FscParams =
3132
{ /// Specifies the output file name and path.
3233
Output : string

src/app/FakeLib/GACHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let gacutilToolPath = !! (sdkBasePath + "/**/gacutil.exe")
88
|> getNewestTool
99

1010
/// GAC parameters
11+
[<CLIMutable>]
1112
type GACParams =
1213
{ /// (Required) Path to the gacutil
1314
ToolPath : string

src/app/FakeLib/GitVersionHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ open FSharp.Data
99
open Newtonsoft.Json
1010
open System
1111

12+
[<CLIMutable>]
1213
type GitversionParams = {
1314
ToolPath : string
1415
}

src/app/FakeLib/HipChatNotificationHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ open System.Web
66
open Fake
77

88
/// The HipChat notification paramater type
9+
[<CLIMutable>]
910
type HipChatNotificationParams = {
1011
/// (Required) Auth token from HipChat
1112
AuthToken: string

src/app/FakeLib/HockeyAppHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ type HockeyResponse = {
7171

7272
/// The HockeyApp parameter type
7373
/// Based on http://support.hockeyapp.net/kb/api/api-apps#upload-app
74+
[<CLIMutable>]
7475
type HockeyAppUploadParams = {
7576
/// (Required) API token
7677
ApiToken: string

src/app/FakeLib/ILMergeHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type TargetKind =
2626
| WinExe
2727

2828
/// Parameter type for ILMerge
29+
[<CLIMutable>]
2930
type ILMergeParams =
3031
{ /// Path to ILMerge.exe
3132
ToolPath : string

src/app/FakeLib/MSBuildHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ type MSBuildDistributedLoggerConfig =
130130
Parameters : (string * string) list option }
131131

132132
/// A type for MSBuild task parameters
133+
[<CLIMutable>]
133134
type MSBuildParams =
134135
{ Targets : string list
135136
Properties : (string * string) list

src/app/FakeLib/MSIHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Fake.MSIHelper
55
open System
66

77
/// MSI parameter type
8+
[<CLIMutable>]
89
type MSIParams =
910
{ ToolPath: string
1011
WorkingDir:string

src/app/FakeLib/MageHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type MageCall = NewApp | UpdateApp | Sign | Deploy | UpdateDeploy | SignDeploy
1919
type MageTrustLevels = Internet | LocalIntranet | FullTrust
2020

2121
/// Needed information to call MAGE
22+
[<CLIMutable>]
2223
type MageParams =
2324
{ ToolsPath : string
2425
ProjectFiles : seq<string>

src/app/FakeLib/NCoverHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ open System.IO
77
open System.Text
88

99
/// The NCover parameter type.
10+
[<CLIMutable>]
1011
type NCoverParams =
1112
{ ProjectName : string
1213
ToolPath : string

src/app/FakeLib/NDependHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ let getWorkingDir workingDir =
1010
Seq.find isNotNullOrEmpty [workingDir; environVar("teamcity.build.workingDir"); "."] // TODO: other build servers?
1111
|> Path.GetFullPath
1212

13+
[<CLIMutable>]
1314
type NDependParams =
1415
{ ToolPath : string
1516
WorkingDir : string

src/app/FakeLib/NGenHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Fake.NGenHelper
44
open System
55

66
/// NGen parameters
7+
[<CLIMutable>]
78
type NGenParams =
89
{ /// (Required) Path to the NGenutil
910
ToolPath : string

src/app/FakeLib/NpmHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type NpmCommand =
4545
| Custom of string
4646

4747
/// The Npm parameter type
48+
[<CLIMutable>]
4849
type NpmParams =
4950
{ Src: string
5051
NpmFilePath: string

src/app/FakeLib/NuGet/Install.fs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type NugetInstallVerbosity =
1111
| Detailed
1212

1313
/// Nuget install parameters.
14+
[<CLIMutable>]
1415
type NugetInstallParams =
1516
{
1617
/// Path to the nuget.exe.

src/app/FakeLib/NuGet/NugetHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type NugetSymbolPackage =
3232
| Nuspec = 2
3333

3434
/// Nuget parameter type
35+
[<CLIMutable>]
3536
type NuGetParams =
3637
{ ToolPath : string
3738
TimeOut : TimeSpan

src/app/FakeLib/NuGet/Update.fs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ open System
55
open Fake
66

77
/// Nuget update parameters.
8+
[<CLIMutable>]
89
type NugetUpdateParams =
910
{
1011
/// Path to the nuget.exe.

src/app/FakeLib/OctoTools.fs

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ type OctoCommand =
110110
| Push of PushOptions
111111

112112
/// Complete Octo.exe CLI params
113+
[<CLIMutable>]
113114
type OctoParams = {
114115
ToolName : string
115116
ToolPath : string

src/app/FakeLib/OpenCoverHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type RegisterType =
1010
| RegisterUser
1111

1212
/// OpenCover parameters, for more details see: https://github.com/OpenCover/opencover/wiki/Usage#console-application-usage.
13+
[<CLIMutable>]
1314
type OpenCoverParams =
1415
{ /// (Required) Path to the OpenCover console application
1516
ExePath : string

src/app/FakeLib/PaketHelper.fs

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ open System.Xml.Linq
77
open System.Text.RegularExpressions
88

99
/// Paket pack parameter type
10+
[<CLIMutable>]
1011
type PaketPackParams =
1112
{ ToolPath : string
1213
TimeOut : TimeSpan
@@ -45,6 +46,7 @@ let PaketPackDefaults() : PaketPackParams =
4546
PinProjectReferences = false }
4647

4748
/// Paket push parameter type
49+
[<CLIMutable>]
4850
type PaketPushParams =
4951
{ ToolPath : string
5052
TimeOut : TimeSpan
@@ -65,6 +67,7 @@ let PaketPushDefaults() : PaketPushParams =
6567
ApiKey = null }
6668

6769
/// Paket restore packages type
70+
[<CLIMutable>]
6871
type PaketRestoreParams =
6972
{ ToolPath : string
7073
TimeOut : TimeSpan

src/app/FakeLib/PaketTemplateHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type PaketDependencyVersionInfo =
3636
type PaketDependency = string * PaketDependencyVersionInfo
3737

3838
/// Contains the different parameters to create a paket.template file
39+
[<CLIMutable>]
3940
type PaketTemplateParams =
4041
{ /// The file path to the `paket.template` file
4142
/// if omitted, a `paket.template` file will be created in the current directory

src/app/FakeLib/PicklesHelper.fs

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ type TestResultsFormat =
6060
| Excel
6161

6262
/// The Pickles parameter type
63+
[<CLIMutable>]
6364
type PicklesParams =
6465
{ /// The path to the Pickles console tool: 'pickles.exe'
6566
ToolPath : string

0 commit comments

Comments
 (0)