Skip to content

Commit

Permalink
Quick README's
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jan 6, 2024
1 parent 6e90bde commit c89f5c4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
16 changes: 15 additions & 1 deletion examples/ScratchPad.Fs/Program.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open Proc.Fs
open System
open Proc.Fs

let _ = shell {
exec "dotnet" "--version"
Expand All @@ -8,9 +9,22 @@ let _ = shell {
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"
Expand Down
2 changes: 1 addition & 1 deletion src/Proc.Fs/Bindings.fs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ type ExecBuilder() =
Proc.Exec(execArgs) |> ignore

[<CustomOperation("run")>]
member this.Invoke(opts) =
member this.Execute(opts) =
let execArgs = execArgs opts
Proc.Exec(execArgs) |> ignore

Expand Down
2 changes: 2 additions & 0 deletions src/Proc.Fs/Proc.Fs.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<LangVersion>Latest</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -36,6 +37,7 @@
<Pack>True</Pack>
<PackagePath>nuget-icon.png</PackagePath>
</Content>
<Content Include="README.md" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Proc/Proc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<FileVersion>$(ProcCurrentAssemblyFileVersion)</FileVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<LangVersion>Latest</LangVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit c89f5c4

Please sign in to comment.