Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Autogenerated .Net bindings for CWL
License
NotificationsYou must be signed in to change notification settings
common-workflow-lab/CWLDotNet
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This project contains .Net objects and utilities auto-generated byhttps://github.com/common-workflow-language/schema_salad for parsing documents corresponding to thehttps://w3id.org/cwl/cwl schema
// Specify the CWL file to loadUrifileUri=newUri(Path.GetFullPath("my-cwl-document.cwl"));// Read the file contentsstringfileContent=System.IO.File.ReadAllText(fileUri.AbsolutePath);// Parse the CWL documentvardoc=CWLDotNet.RootLoader.LoadDocument(fileContent,fileUri.AbsoluteUri);// Work with the documentdoc.Switch( CommandLineTool=>Console.WriteLine("The loaded document is a CommandLineTool"), ExpressionTool=>Console.WriteLine("The loaded document is a ExpressionTool"), Workflow=>Console.WriteLine("The loaded document is a Workflow"), Operation=>Console.WriteLine("The loaded document is an Operation"), ListOf=>Console.WriteLine("This is a list of one of: CommandLineTool | ExpressionTool | Workflow | Operation"));
usingSystem.Text.Json;usingCWLDotNet;// Create a CommandLineTool with empty inputs and outputsCommandLineToolmytool=newCommandLineTool(new(),new());// Set the base commandmytool.baseCommand="echo";// Create an input parameter with a default valueCommandInputParameterinput1=newCommandInputParameter(CWLType.INT);input1.default_="Hello World!";// Add the input to the toolmytool.inputs.Add(input1);// Serialize the toolstringoutDoc=JsonSerializer.Serialize(mytool.Save());
The complete documentation, autogenerated byDocFX can be found under the following link:https://common-workflow-lab.github.io/CWLDotNet/
CWLDotNet only supports the CWL v1.2 syntax. Other documents have to be upgraded using thecwl-upgrader
About
Autogenerated .Net bindings for CWL
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published