refractor: rename comment template.

This commit is contained in:
Alexandre Pujol 2023-09-30 13:22:04 +01:00
parent 26d05f1869
commit 1da0073120
Failed to generate hash of commit
2 changed files with 11 additions and 11 deletions

View file

@ -1,4 +1,4 @@
{{- define "comments" -}} {{- define "comment" -}}
{{- if .FileInherit -}} {{- if .FileInherit -}}
{{- " # file_inherit" -}} {{- " # file_inherit" -}}
{{- end -}} {{- end -}}

View file

@ -57,7 +57,7 @@
{{- end -}} {{- end -}}
{{- if eq $type "Capability" -}} {{- if eq $type "Capability" -}}
{{ template "qualifier" . }}{{ "capability " }}{{ .Name }}{{ "," }}{{ template "comments" . }} {{ template "qualifier" . }}{{ "capability " }}{{ .Name }}{{ "," }}{{ template "comment" . }}
{{- end -}} {{- end -}}
{{- if eq $type "Network" -}} {{- if eq $type "Network" -}}
@ -74,7 +74,7 @@
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Mount" -}} {{- if eq $type "Mount" -}}
@ -93,7 +93,7 @@
{{ " -> " }}{{ . }} {{ " -> " }}{{ . }}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Umount" -}} {{- if eq $type "Umount" -}}
@ -109,7 +109,7 @@
{{ " " }}{{ . }} {{ " " }}{{ . }}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Remount" -}} {{- if eq $type "Remount" -}}
@ -125,7 +125,7 @@
{{ " " }}{{ . }} {{ " " }}{{ . }}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Unix" -}} {{- if eq $type "Unix" -}}
@ -148,7 +148,7 @@
{{- ")" -}} {{- ")" -}}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Ptrace" -}} {{- if eq $type "Ptrace" -}}
@ -161,7 +161,7 @@
{{ " peer=" }}{{ . }} {{ " peer=" }}{{ . }}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Signal" -}} {{- if eq $type "Signal" -}}
@ -177,7 +177,7 @@
{{ " peer=" }}{{ . }} {{ " peer=" }}{{ . }}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "Dbus" -}} {{- if eq $type "Dbus" -}}
@ -212,7 +212,7 @@
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- if eq $type "File" -}} {{- if eq $type "File" -}}
@ -222,7 +222,7 @@
{{ " -> " }}{{ . }} {{ " -> " }}{{ . }}
{{- end -}} {{- end -}}
{{- "," -}} {{- "," -}}
{{- template "comments" . -}} {{- template "comment" . -}}
{{- end -}} {{- end -}}
{{- "\n" -}} {{- "\n" -}}