* Getting environment variables and passwords from Vault (not tested yet) * Vault configuration to config (not tested yet) * Ability to run scripts from file on local machine on the remote host * Ability to get ouput in the notification of a list for individual commands or all commands * Make SSH connections close after all commands have been run; reuse previous connections if needed
		
			
				
	
	
		
			22 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{- $context := .context }}
 | 
						|
{{- $content := .content }}
 | 
						|
{{- $title := .title | default (T "Expand-title") }}
 | 
						|
{{- $title = trim $title " " }}
 | 
						|
{{- $expanded := .open | default false }}
 | 
						|
{{- if eq (printf "%T" $expanded) "string" }}
 | 
						|
	{{- $expanded = (eq $expanded "true") }}
 | 
						|
{{- end }}
 | 
						|
{{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $context) .id }}
 | 
						|
{{- with $context }}
 | 
						|
<div class="expand">
 | 
						|
    <input type="checkbox" id="expand-{{ $id }}" aria-controls="expandcontent-{{ $id }}" {{ if $expanded }} checked{{ end }}>
 | 
						|
    <label class="expand-label" for="expand-{{ $id }}" >
 | 
						|
        <i class="fas fa-chevron-down"></i>
 | 
						|
        <i class="fas fa-chevron-right"></i>
 | 
						|
        {{ $title | .RenderString }}
 | 
						|
    </label>
 | 
						|
    <div id="expandcontent-{{ $id }}" class="expand-content">
 | 
						|
{{ if ne "<" (substr (strings.TrimLeft " " $content) 0 1) }}<p>{{ end }}<!-- we add a DOM element here if there is none to make collapsing marings work -->
 | 
						|
{{ $content | safeHTML }}</div><!-- no line break allowed here because of awkward behavior of Hugo 110 or this theme when tag shortcode is called standalone outside of tags shortcode ? -->
 | 
						|
</div>
 | 
						|
{{- end }} |