feat: documentation for cli

This commit is contained in:
2026-02-07 00:20:57 -05:00
parent 744a2ffd3e
commit b61ca744e0
3 changed files with 12 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ type Destination interface {
// An StdoutDestination writes to stdout.
type StdoutDestination struct{}
// Write outputs to standard output.
func (d StdoutDestination) Write(data string) error {
fmt.Println(data)
return nil
@@ -22,6 +23,7 @@ func (d StdoutDestination) Write(data string) error {
// A FileDestination writes to a file.
type FileDestination struct{ Path string }
// Write outputs to a file.
func (d FileDestination) Write(data string) error {
return os.WriteFile(d.Path, []byte(data+"\n"), 0644)
}