F# mentioned nice. That code looks like an affair baby of C# and F# though :D Could be cleaner with more F# idiomatic code for example pattern matching like this: let main args = match args with | [|_; "install"|] -> install() | [|_; workspace|] -> workspace |> collect |> openBrowser | _ -> Console.Error.WriteLine("Specify 'install' to install required tools") Console.Error.WriteLine("OR a workspace to create a coverage report") exit 1 main fsi.CommandLineArgs
Nice work!
F# mentioned nice. That code looks like an affair baby of C# and F# though :D
Could be cleaner with more F# idiomatic code for example pattern matching like this:
let main args =
match args with
| [|_; "install"|] -> install()
| [|_; workspace|] -> workspace |> collect |> openBrowser
| _ ->
Console.Error.WriteLine("Specify 'install' to install required tools")
Console.Error.WriteLine("OR a workspace to create a coverage report")
exit 1
main fsi.CommandLineArgs