new /v2 subdirectory

This commit is contained in:
2026-03-19 18:28:11 +01:00
parent 52ff844ce1
commit dae8be92e3
27 changed files with 2359 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package cli
import (
"fmt"
"io"
)
type SimpleOptionTracer struct {
w io.Writer
}
func NewSimpleOptionTracer(w io.Writer) *SimpleOptionTracer {
return &SimpleOptionTracer{w: w}
}
func (tr *SimpleOptionTracer) TraceCliOption(name string, valueType string, value any) {
fmt.Fprintf(tr.w, "Option: %s, Type: %s, Value: %v\n", name, valueType, value)
}