Versions in this module Expand all Collapse all v0 v0.2.1 Nov 4, 2026 v0.2.0 Nov 4, 2026 Changes in this version + func AddListFlags(cmd *cobra.Command, page, limit *int) + func ClampRowsToLimit(rows []map[string]any, limit int) []map[string]any + func Confirm(prompt string, yes bool) bool + func FormatHHMM(value any) (string, bool) + func FormatWeekday(value any) (string, bool) + func Int64PtrIfPositive(value int) *int64 + func Int64PtrIfSet(value string) (*int64, error) + func IntStringPtrIfPositive(value int) *string + func IsInteractive() bool + func PaginateRows(rows []map[string]any, page, limit int) ([]map[string]any, int, int, error) + func PromptPick(rows []map[string]any, cols []output.Column, idKey string, prompt string) (map[string]any, error) + func PromptSelect(label string, choices []string) string + func PromptText(label string) string + func RowsAsAny(rows []map[string]any) []any + func RowsFromAny(data any) []map[string]any + func ShouldUseInteractive(cmd *cobra.Command, force, disabled bool, optionFlags ...string) (bool, error) + func StringPtrIfSet(value string) *string + func WithListRows(data any, key string, rows []map[string]any, total, page int) any + type ListResult struct + Key string + Page int + Raw any + Rows []map[string]any + Total int + func NewListResult(data any, key string) ListResult + func (r ListResult) FinalizeClientSide(page, limit int) (ListResult, error) + func (r ListResult) FinalizeServerSide(limit int) ListResult + func (r ListResult) WithRows(rows []map[string]any, total, page int) ListResult v0.1.0 Apr 18, 2026 Changes in this version + func AsMap(v any) map[string]any + func ExtractList(data any, listKeys ...string) (raw any, rows []map[string]any, total int, page int) + func Itoa(i int) string + func ServerFromCmd(cmd *cobra.Command) string