-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve F# bindings usage * Quick README's * Quick README's * ensure readme gets packaged
- Loading branch information
Showing
6 changed files
with
423 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,48 @@ | ||
open Proc.Fs | ||
open System | ||
open Proc.Fs | ||
|
||
let uname = shell { | ||
let _ = shell { | ||
exec "dotnet" "--version" | ||
exec "uname" | ||
exec "uname" | ||
} | ||
|
||
let dotnetVersion = exec { | ||
binary "dotnet" | ||
args "--help" | ||
filter_output (fun l -> l.Line.Contains "clean") | ||
filter (fun l -> l.Line.Contains "clean") | ||
} | ||
|
||
exec { | ||
binary "dotnet" | ||
args "--help" | ||
env Map[("key", "value")] | ||
workingDirectory "." | ||
send_control_c false | ||
timeout (TimeSpan.FromSeconds(10)) | ||
thread_wrap false | ||
validExitCode (fun i -> i <> 0) | ||
run | ||
} | ||
|
||
let helpStatus = exec { | ||
binary "dotnet" | ||
args "--help" | ||
exit_code | ||
} | ||
|
||
let helpOutput = exec { | ||
binary "dotnet" | ||
args "--help" | ||
output | ||
} | ||
|
||
printfn "Found lines %i" dotnetVersion.Length | ||
|
||
let dotnetRestoreHelp = exec { | ||
exec { | ||
binary "dotnet" | ||
invoke_args ["restore"; "--help"] | ||
run_args ["restore"; "--help"] | ||
} | ||
|
||
exec { run "dotnet" " "} | ||
let statusCode = exec { exit_code_of "dotnet" " "} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.