feat: revise API, add README.md, LICENSE (#2)

Co-authored-by: Dmitry Fedotov <dmitry@uint32.ru>
Co-committed-by: Dmitry Fedotov <dmitry@uint32.ru>
This commit is contained in:
2025-08-31 13:38:54 +03:00
committed by Dmitry
parent 858cae9547
commit 454c632462
12 changed files with 175 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
package script
import (
"context"
"os"
"strings"
)
@@ -12,7 +11,7 @@ func NewStdoutWriter() *StdoutWriter {
return new(StdoutWriter)
}
func (s *StdoutWriter) Write(_ context.Context, in []string) error {
func (s *StdoutWriter) Write(in []string) error {
_, err := os.Stdout.WriteString(strings.Join(in, ",") + "\n")
return err
}