This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 337 Bytes
package urknall
import "github.com/dynport/urknall/utils"
type stringCommand struct {
cmd string
}
func (sc *stringCommand) Shell() string {
return sc.cmd
}
func (sc *stringCommand) Logging() string {
return "[COMMAND] " + sc.cmd
}
func (sc *stringCommand) Render(i interface{}) {
sc.cmd = utils.MustRenderTemplate(sc.cmd, i)
}