feat: implement nested groups

- use includegroups feature to nest groups
- remove the trailing ',' from includegroups
This commit is contained in:
2024-09-26 17:11:08 +10:00
parent 933427e861
commit 3a798a20d7
2 changed files with 18 additions and 42 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[[groups]]
name = "<%= $name %>"
gidnumber = <%= $gidnumber %>
<% if $includegroups.length > 0 { %>includegroups = [<% $includegroups.each |Integer $group| { %><%= $group %>, <% } %>]<% } %>
<% if $includegroups.length > 0 { %>includegroups = [<%= $includegroups.join(', ') %>]<% } %>