-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add upgrade info * Format code and add fantomas to CI * Do not create new manifest * Add github example * Use Ply * Use Fstoolkit.Errorhandling Co-authored-by: Ivan Polomani <[email protected]> * Update examples/github/GitHub.fsproj Co-authored-by: Ivan Polomani <[email protected]> * Update examples/github/GitHub.fsproj Co-authored-by: Ivan Polomani <[email protected]> Co-authored-by: Ivan Polomani <[email protected]>
- Loading branch information
Showing
41 changed files
with
521 additions
and
302 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"paket": { | ||
"version": "5.257.0", | ||
"commands": [ | ||
"paket" | ||
] | ||
}, | ||
"fantomas-tool": { | ||
"version": "4.4.0", | ||
"commands": [ | ||
"fantomas" | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
obj | ||
bin | ||
.vs | ||
.config | ||
BenchmarkDotNet.Artifacts | ||
benchmark/bin | ||
benchmark/obj | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net5</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Oryx" Version="3.0.0-beta-001" /> | ||
<PackageReference Include="Oryx.ThothJsonNet" Version="3.0.0-beta-001" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> | ||
<PackageReference Include="Ply" Version="0.3.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.fs" /> | ||
</ItemGroup> | ||
</Project> |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
open Oryx | ||
open System.Net.Http | ||
open Oryx.ThothJsonNet.ResponseReader | ||
open Thoth.Json.Net | ||
open FSharp.Control.Tasks.ContextInsensitive | ||
|
||
[<EntryPoint>] | ||
let main argv = | ||
use client = new HttpClient() | ||
|
||
let context = | ||
Context.defaultContext | ||
|> Context.withHttpClient client | ||
|
||
let response = | ||
GET | ||
>=> withUrl "https://api.github.com/repos/cognitedata/oryx/releases/latest" | ||
>=> fetch | ||
>=> json (Decode.field "tag_name" Decode.string) | ||
|
||
let _ = | ||
(task { | ||
let! tag = (response |> runAsync context) | ||
|
||
printfn "%A" tag | ||
|
||
return 0 | ||
}) | ||
.GetAwaiter() | ||
.GetResult() | ||
|
||
0 // return an integer exit code |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
group Examples | ||
|
||
Thoth.Json.Net | ||
Ply |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ group Newtonsoft | |
|
||
FSharp.Core | ||
Newtonsoft.Json | ||
Taskbuilder.fs | ||
Ply | ||
Oryx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ group Google | |
|
||
FSharp.Core | ||
Google.Protobuf | ||
Taskbuilder.fs | ||
Ply | ||
Oryx |
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
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ group Json | |
|
||
FSharp.Core | ||
System.Text.Json | ||
Taskbuilder.fs | ||
Ply | ||
Oryx |
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.