Skip to content

Commit 070ca96

Browse files
committed
switch to resizearray and add some comments
1 parent e6d9902 commit 070ca96

13 files changed

Lines changed: 292 additions & 370 deletions

src/CWL/CWL.fs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ module CWLProcessingUnits =
1515
type CWLToolDescription (
1616
cwlVersion: string,
1717
cls: CWLClass,
18-
outputs: Output [],
19-
?baseCommand: string [],
20-
?requirements: Requirement [],
21-
?hints: Requirement [],
22-
?inputs: Input [],
18+
outputs: ResizeArray<Output>,
19+
?baseCommand: ResizeArray<string>,
20+
?requirements: ResizeArray<Requirement>,
21+
?hints: ResizeArray<Requirement>,
22+
?inputs: ResizeArray<Input>,
2323
?metadata: DynamicObj
2424
) =
2525
inherit DynamicObj ()
2626

2727
let mutable _cwlVersion: string = cwlVersion
2828
let mutable _class: CWLClass = cls
29-
let mutable _outputs: Output [] = outputs
30-
let mutable _baseCommand: string [] option = baseCommand
31-
let mutable _requirements: Requirement [] option = requirements
32-
let mutable _hints: Requirement [] option = hints
33-
let mutable _inputs: Input [] option = inputs
29+
let mutable _outputs: ResizeArray<Output> = outputs
30+
let mutable _baseCommand: ResizeArray<string> option = baseCommand
31+
let mutable _requirements: ResizeArray<Requirement> option = requirements
32+
let mutable _hints: ResizeArray<Requirement> option = hints
33+
let mutable _inputs: ResizeArray<Input> option = inputs
3434
let mutable _metadata: DynamicObj option = metadata
3535

3636
member this.CWLVersion
@@ -69,22 +69,22 @@ module CWLProcessingUnits =
6969
type CWLWorkflowDescription(
7070
cwlVersion: string,
7171
cls: CWLClass,
72-
steps: WorkflowStep [],
73-
inputs: Input [],
74-
outputs: Output [],
75-
?requirements: Requirement [],
76-
?hints: Requirement [],
72+
steps: ResizeArray<WorkflowStep>,
73+
inputs: ResizeArray<Input>,
74+
outputs: ResizeArray<Output>,
75+
?requirements: ResizeArray<Requirement>,
76+
?hints: ResizeArray<Requirement>,
7777
?metadata: DynamicObj
7878
) =
7979
inherit DynamicObj()
8080

8181
let mutable _cwlVersion: string = cwlVersion
8282
let mutable _class: CWLClass = cls
83-
let mutable _steps: WorkflowStep [] = steps
84-
let mutable _inputs: Input [] = inputs
85-
let mutable _outputs: Output [] = outputs
86-
let mutable _requirements: Requirement [] option = requirements
87-
let mutable _hints: Requirement [] option = hints
83+
let mutable _steps: ResizeArray<WorkflowStep> = steps
84+
let mutable _inputs: ResizeArray<Input> = inputs
85+
let mutable _outputs: ResizeArray<Output> = outputs
86+
let mutable _requirements: ResizeArray<Requirement> option = requirements
87+
let mutable _hints: ResizeArray<Requirement> option = hints
8888
let mutable _metadata: DynamicObj option = metadata
8989

9090
member this.CWLVersion

src/CWL/CWLTypes.fs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ module CWLTypes =
1717
Writable: bool option
1818
}
1919

20+
/// Primitive types with the concept of a file and directory as a builtin type.
2021
type CWLType =
22+
/// Represents a file (or group of files when secondaryFiles is provided)
2123
| File of FileInstance
24+
/// Represents a directory to present to a command line tool.
25+
/// Directories are represented as objects with class of Directory. Directory objects have a number of properties that provide metadata about the directory.
2226
| Directory of DirectoryInstance
27+
/// Define a file or subdirectory that must be placed in the designated output directory prior to executing the command line tool.
28+
/// May be the result of executing an expression, such as building a configuration file from a template.
2329
| Dirent of DirentInstance
2430
| String
2531
| Int
@@ -52,6 +58,6 @@ module CWLTypes =
5258

5359
type SoftwarePackage = {
5460
Package: string
55-
Version: string [] option
56-
Specs: string [] option
61+
Version: ResizeArray<string> option
62+
Specs: ResizeArray<string> option
5763
}

0 commit comments

Comments
 (0)