Files
anki-static/AnkiStatic.Lib/ConfigSchema.fs
patrick 4070001e55
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
Add app (#4)
Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #4
2023-09-08 23:31:01 +00:00

16 lines
465 B
Forth

namespace AnkiStatic
open System.IO
[<RequireQualifiedAccess>]
module AnkiStatic =
let getSchema () : Stream =
let resource = "AnkiStatic.Lib.anki.schema.json"
let assembly = System.Reflection.Assembly.GetExecutingAssembly ()
let stream = assembly.GetManifestResourceStream resource
match stream with
| null -> failwithf "The resource %s was not found. This is a bug in the tool." resource
| stream -> stream