feat(aa): add the link rule.

This commit is contained in:
Alexandre Pujol 2024-05-25 21:56:28 +01:00
parent 81f0163086
commit e38f5b4637
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 92 additions and 13 deletions

View file

@ -20,4 +20,22 @@
{{- end -}}
{{- "," -}}
{{- template "comment" . -}}
{{- end -}}
{{- end -}}
{{- define "link" -}}
{{- template "qualifier" . -}}
{{- if .Owner -}}
{{- "owner " -}}
{{- end -}}
{{- "link " -}}
{{- if .Subset -}}
{{- "subset " -}}
{{- end -}}
{{- .Path -}}
{{- " " -}}
{{- with .Target -}}
{{ " -> " }}{{ . }}
{{- end -}}
{{- "," -}}
{{- template "comment" . -}}
{{- end -}}

View file

@ -106,6 +106,10 @@
{{- template "file" . -}}
{{- end -}}
{{- if eq $type "Link" -}}
{{- template "link" . -}}
{{- end -}}
{{- if eq $type "Profile" -}}
{{- template "profile" . -}}
{{- end -}}