/* Yes program implementation. */ package yes import( "os" "fmt" "strings" "github.com/omnipunk/tk/input" "github.com/omnipunk/cli/mtool" ) var( nArg int ) func yes(s string){ if nArg<0{ for{ fmt.Print(s) } } else { for i:=0 ; i0 { s = strings.Join(args, " ") } else { s = "y" } } if !nFlag { s += "\n" } yes(s) }