* 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
		
			
				
	
	
		
			33 lines
		
	
	
		
			923 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			923 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{- $_hugo_config := `{ "version": 1 }` }}
 | 
						|
{{- $color   := (.Get "color") }}
 | 
						|
{{- $content := .Inner }}
 | 
						|
{{- $icon    := (.Get "icon") }}
 | 
						|
{{- $name    := (.Get "name") }}
 | 
						|
{{- $style   := (.Get "style") }}
 | 
						|
{{- $title   := (.Get "title") }}
 | 
						|
{{- $tabs := slice }}
 | 
						|
{{- if and .Parent (.Parent.Scratch.Get "tabs") }}
 | 
						|
    {{- $tabs = .Parent.Scratch.Get "tabs" }}
 | 
						|
{{- end }}
 | 
						|
{{- $tabs = $tabs | append (dict
 | 
						|
    "color"   $color
 | 
						|
    "content" $content
 | 
						|
    "icon"    $icon
 | 
						|
    "name"    $name
 | 
						|
    "style"   $style
 | 
						|
    "title"   $title
 | 
						|
) }}
 | 
						|
{{- if .Parent }}
 | 
						|
    {{- $.Parent.Scratch.Set "tabs" $tabs }}
 | 
						|
{{- else }}
 | 
						|
    {{- $c:=""}}{{/* if no containing tabs shortcode is present, we display this tab as single */}}
 | 
						|
    {{- partial "shortcodes/tabs.html" (dict
 | 
						|
        "context" .Page
 | 
						|
        "color"   ""
 | 
						|
        "content" $tabs
 | 
						|
        "groupid" ""
 | 
						|
        "icon"    ""
 | 
						|
        "style"   ""
 | 
						|
        "title"   ""
 | 
						|
    ) }}
 | 
						|
{{- end }} |