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