MCPcopy Create free account
hub / github.com/HoneyLLM/cli2ssh / FormatArgs

Method FormatArgs

internal/args/args.go:56–62  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

54}
55
56func (s *Session) FormatArgs(args []string) []string {
57 formatted := make([]string, len(args))
58 for i, arg := range args {
59 formatted[i] = formatTemplate(arg, s)
60 }
61 return formatted
62}
63
64func formatTemplate(templateStr string, data any) string {
65 template, err := template.New("").Parse(templateStr)

Callers 1

mainFunction · 0.95

Calls 1

formatTemplateFunction · 0.85

Tested by

no test coverage detected