File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 7
7
import java .util .*;
8
8
9
9
public final class AggregateSnippets {
10
+ public static void main (String [] args ) throws Throwable {
11
+ final var repoRoot = Paths .get ("" ).toAbsolutePath ();
12
+ final var snippetsSrcRoot = repoRoot .resolve ("src/main/java/com/vonage/quickstart" );
13
+ final var aggregator = new AggregateSnippets (snippetsSrcRoot );
14
+ aggregator .computeContents ();
15
+ var destPath = repoRoot .resolve ("SNIPPETS.md" );
16
+ aggregator .saveToFile (destPath );
17
+ }
18
+
19
+
10
20
public record CodeSnippetFile (
11
21
Path file ,
12
22
int mainStartIndex , int mainEndIndex ,
13
23
int clientStartIndex , int clientEndIndex
14
- ) {
15
-
16
- }
24
+ ) { }
17
25
18
26
private StringBuilder sb ;
19
27
private final Path snippetsSrcRoot ;
@@ -150,13 +158,4 @@ private static String toHeadingTitle(String title) {
150
158
}
151
159
return result ;
152
160
}
153
-
154
- public static void main (String [] args ) throws Throwable {
155
- final var repoRoot = Paths .get ("" ).toAbsolutePath ();
156
- final var snippetsSrcRoot = repoRoot .resolve ("src/main/java/com/vonage/quickstart" );
157
- final var aggregator = new AggregateSnippets (snippetsSrcRoot );
158
- aggregator .computeContents ();
159
- var destPath = repoRoot .resolve ("SNIPPETS.md" );
160
- aggregator .saveToFile (destPath );
161
- }
162
161
}
You can’t perform that action at this time.
0 commit comments