You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C# snippets can built using the `dotnet build [project-name]` command under each directory. They can be run using `dotnet run --project [project-name]` command. Attempting to run a snippet will also trigger building it.
@@ -23,22 +46,21 @@ You may run any individual Snippet class directly providing you have a Senzing r
23
46
24
47
1. Run a snippet that takes no command-line arguments.
25
48
26
-
```[shell]
49
+
```console
27
50
cd snippets
28
51
dotnet run --project loading/LoadRecords
29
52
```
30
53
31
54
2. Run a snippet and override the input file using command-line arguments
32
55
33
-
```[shell]
56
+
```console
34
57
dotnet run --project loading/LoadRecordsViaLoop ../../resources/data/load-500-with-errors.jsonl
35
58
```
36
59
37
60
### Run via Runner
38
61
39
62
The `SnippetRunner` project will run one or more snippets for you and create a temporary Senzing repository to run then against. This can be executed using:
40
-
41
-
```[shell]
63
+
```console
42
64
cd runner
43
65
dotnet run --project SnippetRunner
44
66
```
@@ -47,42 +69,42 @@ The `SnippetRunner` project will run one or more snippets for you and create a t
47
69
48
70
1. Execute all code snippets:
49
71
50
-
```[shell]
72
+
```console
51
73
cd runner
52
74
dotnet run --project SnippetRunner all
53
75
```
54
76
55
77
2. Execute all code snippets in a group:
56
78
57
-
```[shell]
79
+
```console
58
80
cd runner
59
81
dotnet run --project SnippetRunner loading
60
82
```
61
83
62
84
3. Execute all code snippets from multiple groups:
63
85
64
-
```[shell]
86
+
```console
65
87
cd runner
66
88
dotnet run --project SnippetRunner loading redo
67
89
```
68
90
69
91
4. Execute specific code snippets:
70
92
71
-
```[shell]
93
+
```console
72
94
cd runner
73
95
dotnet run --project SnippetRunner loading.LoadViaLoop loading.LoadViaQueue
74
96
```
75
97
76
98
5. Mix and match packages with individual snippets:
77
99
78
-
```[shell]
100
+
```console
79
101
cd runner
80
102
dotnet run --project SnippetRunner redo loading.LoadViaLoop
81
103
```
82
104
83
105
6. Generate a help message by specifying no arguments:
0 commit comments