FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Plotly.NET/build/Helpers.fs at dev · plotly/Plotly.NET · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
plotly
/
Plotly.NET
Public
Notifications
You must be signed in to change notification settings
Fork
99
Star
859
Code
Issues
42
Pull requests
3
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Plotly.NET
/
build
/
Helpers.fs
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (26 loc) · 918 Bytes
Breadcrumbs
Plotly.NET
/
build
/
Helpers.fs
Copy path
File metadata and controls
34 lines (26 loc) · 918 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
modul
e
Helper
s
open
BlackFox.
Fake
open
Fake.
Core
open
Fake.
DotNet
let
initializeContext
()
=
let
execContext
=
Context.FakeExecutionContext.Create
false
"
build.fsx
"
[]
Context.setExecutionContext
(
Context.RuntimeContext.Fake execContext
)
/// Executes a dotnet command in the given working directory
let
runDotNet
cmd workingDir
=
let
result
=
DotNet.exec
(
DotNet.Options.withWorkingDirectory workingDir
)
cmd
"
"
if
result.ExitCode
<>
0
then
failwithf
"
'dotnet
%s
' failed in
%s
"
cmd workingDir
let
runOrDefault
defaultTarget args
=
Trace.trace
(
sprintf
"
%A
"
args
)
try
match
args
with
|
[|
target
|]
->
Target.runOrDefault target
|
arr
when
args.Length
>
1
->
Target.run
0
(
Array.head arr
)
(
Array.tail arr
|>
List.ofArray
)
|
_
->
BuildTask.runOrDefault defaultTarget
0
with
|
e
->
printfn
"
%A
"
e
1
Back
|
FazBrowse Home
|
New Git URL