forked from tangled.org/core
this repo has no description
1package main 2 3import ( 4 "fmt" 5) 6 7func formatKeyData(repoguardPath string, data []map[string]interface{}) string { 8 var result string 9 for _, entry := range data { 10 result += fmt.Sprintf( 11 `command="%s -base-dir /home/git -user %s -log-path /home/git/log ",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s`+"\n", 12 repoguardPath, entry["did"], entry["key"]) 13 } 14 return result 15}