Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunTargetOrListTargets() #921

Merged
merged 1 commit into from
Aug 24, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/app/FakeLib/AdditionalSyntax.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ let RunParameterTargetOrDefault parameterName defaultTarget = getBuildParamOrDef
/// Runs the target given by the target parameter or the given default target
let RunTargetOrDefault defaultTarget = getBuildParamOrDefault "target" defaultTarget |> Run

/// Runs the target given by the target parameter or lists the available targets
let RunTargetOrListTargets() =
if hasBuildParam "target" then getBuildParam "target" |> Run
else listTargets()

/// Runs the target given by the target parameter
let RunTarget() = getBuildParam "target" |> Run

Expand Down Expand Up @@ -63,4 +68,4 @@ let inline (<=>) x y =
y

/// Defines a conditional dependency - y is dependent on x if the condition is true
let inline (=?>) x (y,condition) = if condition then x ==> y else x
let inline (=?>) x (y,condition) = if condition then x ==> y else x