-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatalog.md.qute
executable file
·112 lines (98 loc) · 2.52 KB
/
catalog.md.qute
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{#if catalogName}
<h1 style="text-align: center;">{catalogName}</h1>
{/if}
{#if catalog.baseRef}
## {catalog.baseRef} <br>
{/if}
{#if catalog.description}
### {catalog.description} <br>
{/if}
<p align="center">
<img src="{catalogLogo or 'https://raw.githubusercontent.com/jbangdev/jbang/main/images/jbang_logo.svg'}">
</p>
{#if renderCatalogs}
### Catalogs
{#for catalog in catalog.catalogs.orEmpty}
**Catalog reference**: {catalog.value.catalogRef} <br>
{#if catalog.value.description}
**Description**: {catalog.value.description} <br>
{/if}
---
{/for}
{/if}
{#if renderAliases}
### Aliases
{#for alias in catalog.aliases.orEmpty}
##### {alias.key}
###### Usage: `jbang {alias.key} [args...]`
**Script reference**: {alias.value.scriptRef} <br>
{#if alias.value.description}
**Description**: {alias.value.description} <br>
{/if}
{#if alias.value.arguments}
**Arguments**:<br>
{#for argument in alias.value.arguments.orEmpty}
- {argument}
{/for}
{/if}
{#if alias.value.javaOptions}
**Java options**:<br>
{#for javaOption in alias.value.javaOptions.orEmpty}
- {javaOption}
{/for}
{/if}
{#if alias.value.dependencies}
**Dependencies**:<br>
{#for dependency in alias.value.dependencies.orEmpty}
- {dependency}
{/for}
{/if}
{#if alias.value.repositories}
**Repositories**:<br>
{#for repository in alias.value.repositories.orEmpty}
- {repository}
{/for}
{/if}
{#if alias.value.classpaths}
**Class paths**:<br>
{#for classpath in alias.value.classpaths.orEmpty}
- {classpath}
{/for}
{/if}
{#if alias.value.properties}
**Properties**:<br>
{#for property in alias.value.properties.orEmpty}
- {property}
{/for}
{/if}
{#if alias.value.javaVersion}
**Java version**: {alias.value.javaVersion}<br>
{/if}
{#if alias.value.mainClass}
**Main class**: {alias.value.mainClass or ''}
{/if}
---
{/for}
{/if}
{#if renderTemplates}
### Templates
{#for template in catalog.templates.orEmpty}
##### {template.key}
###### Usage: `jbang init -t={template.key} script.java [args...]`
{#if template.value.description}
**Description**: {template.value.description}<br><br>
{/if}
**File references**:
{#for templateFileRef in template.value.fileRefs.orEmpty}
- *{templateFileRef.key}* - [{templateFileRef.value}]({templateFileRef.value})
{/for}
{#if template.value.properties}
**Template properties**:
{#for property in template.value.properties.orEmpty}
- *{property.key}* - *{property.value.description} {#if property.value.defaultValue}({property.value.defaultValue}){/if}*
{/for}
{/if}
---
{/for}
{/if}
<h4 style="text-align: center;">Created with JBang Catalog @ {generationDate}</h4>