Skip to content

Commit

Permalink
Merge pull request #1428 from filipw/feature/climutable
Browse files Browse the repository at this point in the history
decorated all *Params helper records with [<CLIMutable>]
  • Loading branch information
forki authored Dec 3, 2016
2 parents 3121e61 + c1f087b commit 07f4584
Show file tree
Hide file tree
Showing 66 changed files with 86 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/FakeLib/AndroidPublisher.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type AndroidPublishConfig = {
Apk: string;
}

[<CLIMutable>]
type AndroidPublishParams = {
Track: string;
Config: AndroidPublishConfig;
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/AppVeyor.fs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ let SetVariable name value =
type ArtifactType = Auto | WebDeployPackage

/// AppVeyor parameters for artifact push
[<CLIMutable>]
type PushArtifactParams =
{
/// The full local path to the artifact
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/AssemblyInfoHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type CodeLanguage =
| FSharp
| VisualBasic

[<CLIMutable>]
type AssemblyInfoParams =
{ OutputFileName : string
ComVisible : bool option
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/AzureCloudServices.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ open System.IO
open Fake

/// Configuration details for packaging cloud services.
[<CLIMutable>]
type PackageCloudServiceParams =
{ /// The name of the Cloud Service.
CloudService : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/AzureHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ open Fake.ProcessHelper
open System

/// A type for the controlling parameter
[<CLIMutable>]
type AzureEmulatorParams = {
CSRunToolPath:string
DSInitToolPath:string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/BowerHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type BowerCommand =
| Custom of string

/// The Bower parameter type
[<CLIMutable>]
type BowerParams =
{ Src: string
BowerFilePath: string
Expand Down
2 changes: 2 additions & 0 deletions src/app/FakeLib/CMake.fs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type CMakeVariable = {
}

/// The CMakeGenerate parameter type.
[<CLIMutable>]
type CMakeGenerateParams = {
/// The location of the CMake executable. Automatically found if null or empty.
ToolPath:string
Expand Down Expand Up @@ -65,6 +66,7 @@ type CMakeGenerateParams = {
}

/// The CMakeBuild parameter type.
[<CLIMutable>]
type CMakeBuildParams = {
/// The location of the CMake executable. Automatically found if null or empty.
ToolPath:string
Expand Down
3 changes: 3 additions & 0 deletions src/app/FakeLib/ChocoHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module Choco =
| Sha512

/// The choco install parameter type.
[<CLIMutable>]
type ChocoInstallParams = {
/// Version of the package
/// Equivalent to the `--version <version>` option.
Expand Down Expand Up @@ -65,6 +66,7 @@ module Choco =
}

/// The choco pack parameter type.
[<CLIMutable>]
type ChocoPackParams = {
/// The version you would like to insert into the package.
/// Equivalent to the `--version <version>` option.
Expand Down Expand Up @@ -194,6 +196,7 @@ module Choco =
}

/// The choco push parameter type.
[<CLIMutable>]
type ChocoPushParams = {
/// The source we are pushing the package to. Default: "https://chocolatey.org/"
/// Equivalent to the `--source <source>` option.
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/DocFxHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Fake.DocFxHelper
open System

/// The parameter type for DocFx.
[<CLIMutable>]
type DocFxParams =
{ /// The tool path - FAKE tries to find docfx.exe automatically in any sub folder.
ToolPath : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/DocuHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Fake.DocuHelper
open System

/// The parameter type for docu.
[<CLIMutable>]
type DocuParams =
{ /// The tool path - FAKE tries to find docu.exe automatically in any sub folder.
ToolPath : string
Expand Down
3 changes: 3 additions & 0 deletions src/app/FakeLib/DotCover.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type DotCoverReportType =
| NDependXml = 3

/// The dotCover parameter type for running coverage
[<CLIMutable>]
type DotCoverParams =
{ ToolPath: string
WorkingDir: string
Expand All @@ -41,6 +42,7 @@ let DotCoverDefaults =
CustomParameters = ""
ErrorLevel = ErrorLevel.Error}

[<CLIMutable>]
type DotCoverMergeParams =
{ ToolPath: string
WorkingDir: string
Expand All @@ -57,6 +59,7 @@ let DotCoverMergeDefaults =
TempDir = ""
CustomParameters = "" }

[<CLIMutable>]
type DotCoverReportParams =
{ ToolPath: string
WorkingDir: string
Expand Down
6 changes: 6 additions & 0 deletions src/app/FakeLib/DotNetCLIHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ let isInstalled() =
with _ -> false

/// DotNet parameters
[<CLIMutable>]
type CommandParams = {
/// ToolPath - usually just "dotnet"
ToolPath: string
Expand Down Expand Up @@ -76,6 +77,7 @@ let RunCommand (setCommandParams: CommandParams -> CommandParams) args =
failwithf "dotnet command failed on %s" args

/// DotNet restore parameters
[<CLIMutable>]
type RestoreParams = {
/// ToolPath - usually just "dotnet"
ToolPath: string
Expand Down Expand Up @@ -138,6 +140,7 @@ let Restore (setRestoreParams: RestoreParams -> RestoreParams) =
failwithf "Restore failed on %s" args

/// DotNet build parameters
[<CLIMutable>]
type BuildParams = {
/// ToolPath - usually just "dotnet"
ToolPath: string
Expand Down Expand Up @@ -211,6 +214,7 @@ let Build (setBuildParams: BuildParams -> BuildParams) =


/// DotNet test parameters
[<CLIMutable>]
type TestParams = {
/// ToolPath - usually just "dotnet"
ToolPath: string
Expand Down Expand Up @@ -284,6 +288,7 @@ let Test (setTestParams: TestParams -> TestParams) =


/// DotNet pack parameters
[<CLIMutable>]
type PackParams = {
/// ToolPath - usually just "dotnet"
ToolPath: string
Expand Down Expand Up @@ -356,6 +361,7 @@ let Pack (setPackParams: PackParams -> PackParams) =
failwithf "Pack failed on %s" args

/// DotNet publish parameters
[<CLIMutable>]
type PublishParams = {
/// ToolPath - usually just "dotnet"
ToolPath: string
Expand Down
2 changes: 2 additions & 0 deletions src/app/FakeLib/DynamicsCRMHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type PackageType =
| Both -> "/p:Both"

/// Parameters for executing Dynamics CRM Helper functions
[<CLIMutable>]
type DynamicsCrmHelperParams =
{
/// Url of CRM Organization / Discovery Service URL if using AllOrganizations
Expand Down Expand Up @@ -70,6 +71,7 @@ let DynamicsCrmHelperDefaults =
}

/// Parameters for invoking Solution Packager
[<CLIMutable>]
type SolutionPackagerParams =
{
/// Action to start, either pack or extract
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/DynamicsNavHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type NavisionServerType =
| NavisionServerType.NativeServer -> "NAVISION"

/// A parameter type to interact with Dynamics NAV
[<CLIMutable>]
type DynamicsNavParams =
{ ToolPath : string
ServerName : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/FXCopHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type FxCopErrorLevel =
| DontFailBuild = 0

/// Parameter type for the FxCop tool
[<CLIMutable>]
type FxCopParams =
{ ApplyOutXsl : bool
DirectOutputToConsole : bool
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/FixieHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ open System.IO
open System.Text

/// Parameter type to configure the Fixie runner
[<CLIMutable>]
type FixieParams = {
/// FileName of the Fixie runner
ToolPath: string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/FscHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type FscPlatform =

/// 'fsc.exe' command line parameters
[<Obsolete "Use FscHelper.FscParam instead">]
[<CLIMutable>]
type FscParams =
{ /// Specifies the output file name and path.
Output : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/GACHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let gacutilToolPath = !! (sdkBasePath + "/**/gacutil.exe")
|> getNewestTool

/// GAC parameters
[<CLIMutable>]
type GACParams =
{ /// (Required) Path to the gacutil
ToolPath : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/GitVersionHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ open FSharp.Data
open Newtonsoft.Json
open System

[<CLIMutable>]
type GitversionParams = {
ToolPath : string
}
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/HipChatNotificationHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ open System.Web
open Fake

/// The HipChat notification paramater type
[<CLIMutable>]
type HipChatNotificationParams = {
/// (Required) Auth token from HipChat
AuthToken: string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/HockeyAppHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type HockeyResponse = {

/// The HockeyApp parameter type
/// Based on http://support.hockeyapp.net/kb/api/api-apps#upload-app
[<CLIMutable>]
type HockeyAppUploadParams = {
/// (Required) API token
ApiToken: string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/ILMergeHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type TargetKind =
| WinExe

/// Parameter type for ILMerge
[<CLIMutable>]
type ILMergeParams =
{ /// Path to ILMerge.exe
ToolPath : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/MSBuildHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ type MSBuildDistributedLoggerConfig =
Parameters : (string * string) list option }

/// A type for MSBuild task parameters
[<CLIMutable>]
type MSBuildParams =
{ Targets : string list
Properties : (string * string) list
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/MSIHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Fake.MSIHelper
open System

/// MSI parameter type
[<CLIMutable>]
type MSIParams =
{ ToolPath: string
WorkingDir:string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/MageHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type MageCall = NewApp | UpdateApp | Sign | Deploy | UpdateDeploy | SignDeploy
type MageTrustLevels = Internet | LocalIntranet | FullTrust

/// Needed information to call MAGE
[<CLIMutable>]
type MageParams =
{ ToolsPath : string
ProjectFiles : seq<string>
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NCoverHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ open System.IO
open System.Text

/// The NCover parameter type.
[<CLIMutable>]
type NCoverParams =
{ ProjectName : string
ToolPath : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NDependHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ let getWorkingDir workingDir =
Seq.find isNotNullOrEmpty [workingDir; environVar("teamcity.build.workingDir"); "."] // TODO: other build servers?
|> Path.GetFullPath

[<CLIMutable>]
type NDependParams =
{ ToolPath : string
WorkingDir : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NGenHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Fake.NGenHelper
open System

/// NGen parameters
[<CLIMutable>]
type NGenParams =
{ /// (Required) Path to the NGenutil
ToolPath : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NpmHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type NpmCommand =
| Custom of string

/// The Npm parameter type
[<CLIMutable>]
type NpmParams =
{ Src: string
NpmFilePath: string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NuGet/Install.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type NugetInstallVerbosity =
| Detailed

/// Nuget install parameters.
[<CLIMutable>]
type NugetInstallParams =
{
/// Path to the nuget.exe.
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NuGet/NugetHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type NugetSymbolPackage =
| Nuspec = 2

/// Nuget parameter type
[<CLIMutable>]
type NuGetParams =
{ ToolPath : string
TimeOut : TimeSpan
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/NuGet/Update.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ open System
open Fake

/// Nuget update parameters.
[<CLIMutable>]
type NugetUpdateParams =
{
/// Path to the nuget.exe.
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/OctoTools.fs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ type OctoCommand =
| Push of PushOptions

/// Complete Octo.exe CLI params
[<CLIMutable>]
type OctoParams = {
ToolName : string
ToolPath : string
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/OpenCoverHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type RegisterType =
| RegisterUser

/// OpenCover parameters, for more details see: https://github.com/OpenCover/opencover/wiki/Usage#console-application-usage.
[<CLIMutable>]
type OpenCoverParams =
{ /// (Required) Path to the OpenCover console application
ExePath : string
Expand Down
3 changes: 3 additions & 0 deletions src/app/FakeLib/PaketHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ open System.Xml.Linq
open System.Text.RegularExpressions

/// Paket pack parameter type
[<CLIMutable>]
type PaketPackParams =
{ ToolPath : string
TimeOut : TimeSpan
Expand Down Expand Up @@ -45,6 +46,7 @@ let PaketPackDefaults() : PaketPackParams =
PinProjectReferences = false }

/// Paket push parameter type
[<CLIMutable>]
type PaketPushParams =
{ ToolPath : string
TimeOut : TimeSpan
Expand All @@ -65,6 +67,7 @@ let PaketPushDefaults() : PaketPushParams =
ApiKey = null }

/// Paket restore packages type
[<CLIMutable>]
type PaketRestoreParams =
{ ToolPath : string
TimeOut : TimeSpan
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/PaketTemplateHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type PaketDependencyVersionInfo =
type PaketDependency = string * PaketDependencyVersionInfo

/// Contains the different parameters to create a paket.template file
[<CLIMutable>]
type PaketTemplateParams =
{ /// The file path to the `paket.template` file
/// if omitted, a `paket.template` file will be created in the current directory
Expand Down
1 change: 1 addition & 0 deletions src/app/FakeLib/PicklesHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type TestResultsFormat =
| Excel

/// The Pickles parameter type
[<CLIMutable>]
type PicklesParams =
{ /// The path to the Pickles console tool: 'pickles.exe'
ToolPath : string
Expand Down
Loading

0 comments on commit 07f4584

Please sign in to comment.