diff --git a/README.md b/README.md index 7daad9a1..eb12aa9d 100644 --- a/README.md +++ b/README.md @@ -1,1122 +1,283 @@ -# Clicky Framework - -A comprehensive Go framework for data formatting, concurrent task execution, web middleware, and CLI-to-API generation. Clicky transforms command-line applications into full-featured systems with beautiful output formatting, robust task management, configurable middleware, and automatic API documentation. - -## Core Components - -### 🎨 **Formatters** - Advanced Data Formatting -- **Multi-format output**: Pretty tables, JSON, YAML, CSV, Markdown, HTML, PDF, Excel, Tree views, Slack Block Kit -- **Smart struct tags**: Control formatting with `pretty` tags for tables, trees, and styling -- **Tailwind CSS integration**: Built-in support for Tailwind utility classes -- **Dynamic styling**: Fluent API for programmatic content styling -- **Unstructured data**: Handle dynamic data from APIs and user input - -### 📊 **Task System** - Concurrent Execution -- **TypedTask & TypedGroup**: Type-safe task execution with structured results -- **Progress tracking**: Visual progress bars with status management -- **Concurrency control**: Manager and group-level limits with semaphores -- **Health system**: Automatic status determination with health mixins -- **Retry logic**: Exponential backoff with configurable error handling -- **Integration ready**: CLI tools, HTTP servers, batch processing - -### 🔧 **Middleware** - Echo v4 Web Framework -- **20+ middleware types**: Authentication, security, performance, CORS, logging -- **YAML configuration**: Environment-specific configs with validation -- **CEL integration**: Dynamic request/response processing -- **Authentication**: Basic Auth, JWT, API keys with htpasswd support -- **Security hardening**: CSRF, secure headers, rate limiting -- **Preset configurations**: Development, production, security-focused setups - -### 🌐 **OpenAPI & Server** - CLI to API Generation -- **Automatic OpenAPI spec generation**: Convert Cobra commands to OpenAPI 3.0.3 -- **Interactive Swagger UI**: Live documentation server with try-it-out functionality -- **Command execution**: HTTP endpoints for running CLI commands -- **Fluent integration**: Simple `.OpenAPICommand()` and `.MCPCommand()` extensions -- **MCP support**: Model Context Protocol for AI assistant integration - -## Quick Start - -### Basic Data Formatting +# Clicky -```go -package main - -import ( - "fmt" - "github.com/flanksource/clicky" -) - -type User struct { - Name string `pretty:"label=Full Name,table"` - Age int `pretty:"label=Age,color=blue,table"` - City string `pretty:"label=Location,color=gray-500,table"` - Status string `pretty:"label=Status,sort,table"` -} - -func main() { - users := []User{ - {Name: "Alice", Age: 30, City: "New York", Status: "Active"}, - {Name: "Bob", Age: 25, City: "Los Angeles", Status: "Inactive"}, - } - - // Format as pretty table (default) - prettyStr, _ := clicky.Format(users, clicky.FormatOptions{Format: "pretty"}) - fmt.Println(prettyStr) - - // Export as different formats - jsonStr, _ := clicky.Format(users, clicky.FormatOptions{Format: "json"}) - yamlStr, _ := clicky.Format(users, clicky.FormatOptions{Format: "yaml"}) - markdownStr, _ := clicky.Format(users, clicky.FormatOptions{Format: "markdown"}) -} -``` - -### Task Execution - -```go -import "github.com/flanksource/clicky/task" - -func main() { - // Start a simple task with progress tracking - task := task.StartTask("Download Files", func(ctx context.Context, t *task.Task) error { - t.Infof("Starting download...") - for i := 0; i <= 100; i += 10 { - t.SetProgress(i, 100) - time.Sleep(100 * time.Millisecond) - } - t.Infof("Download complete") - return nil - }) - - result := task.WaitFor() - if result.Error != nil { - fmt.Printf("Task failed: %v\n", result.Error) - } -} -``` - -### CLI with OpenAPI Documentation - -```go -import ( - "github.com/flanksource/clicky/extensions" - "github.com/spf13/cobra" -) - -func main() { - rootCmd := &cobra.Command{ - Use: "myapp", - Short: "My CLI application", - } - - // Add your commands - rootCmd.AddCommand(myCommands()...) - - // Add OpenAPI documentation and MCP support - extensions.CobraExtensions(rootCmd). - OpenAPICommand(). // Adds 'openapi generate' and 'openapi serve' - MCPCommand() // Adds 'mcp serve' for AI integration - - rootCmd.Execute() -} - -// Usage: -// myapp openapi serve # Start Swagger UI at http://localhost:8080 -// myapp mcp serve # Start MCP server for AI assistants -``` - -## Package Documentation - -### Formatters Package +Clicky is a Go toolkit for turning structured data and Cobra CLIs into polished command-line, web, and AI-facing interfaces. It includes: -The formatters package provides comprehensive data formatting with multiple output formats and advanced styling. +- multi-format output for structs, maps, slices, and schema-driven data +- styled terminal and HTML rendering based on `pretty` tags and Tailwind-like classes +- concurrent task execution with progress rendering, retries, cancellation, and typed results +- Echo middleware configured from Go or YAML +- Cobra extensions for OpenAPI, Swagger UI, HTTP command execution, and MCP servers +- helper packages for text processing, command execution, entity commands, and linting -#### Supported Output Formats +The module path is: -All struct-based data works seamlessly across multiple output formats: - -- **`pretty`**: Human-readable tables and formatting (default) -- **`json`**: JSON formatted output with proper indentation -- **`yaml`/`yml`**: YAML formatted output -- **`csv`**: Comma-separated values format for tabular data -- **`markdown`/`md`**: Markdown tables with styling -- **`html`**: HTML tables with Tailwind CSS classes -- **`html-pdf`**: HTML-to-PDF conversion for reports -- **`excel`/`xlsx`**: Excel spreadsheet format -- **`tree`**: Hierarchical tree view for nested data -- **`slack`**: Slack Block Kit JSON output - -#### Pretty Tag Reference - -The pretty tag system provides comprehensive control over data formatting and styling: - -##### Table Tags - -```go -type Product struct { - ID int `pretty:"label=Product ID,width=10,table"` - Name string `pretty:"label=Product Name,color=blue,table"` - Price float64 `pretty:"label=Price,format=currency,sort,table"` - InStock bool `pretty:"label=Available,color=green,table"` - CreatedAt time.Time `pretty:"label=Created,format=date,table"` -} -``` - -Table tag options: -- **`label=HeaderName`** - Sets the column header name -- **`color=tailwind-class`** - Applies color styling -- **`sort`** - Makes column sortable -- **`width=N`** - Sets column width -- **`format=type`** - date, currency, percentage, etc. -- **`table`** - Marks field for table formatting - -##### Tree Formatting - -```go -type Organization struct { - Department *Department `pretty:"tree"` -} - -type Department struct { - Name string `json:"name"` - Manager string `json:"manager"` - Teams []*Department `json:"teams,omitempty"` -} +```bash +go get github.com/flanksource/clicky ``` -Tree tag options: -- **`tree`** - Marks field for tree formatting -- **`icon=custom-icon`** - Sets custom icon for nodes - -##### Style Integration +## Install the CLI -```go -type StatusReport struct { - Message string `pretty:"color=green,font=bold"` - Level string `pretty:"color=yellow"` - Time string `pretty:"color=gray-500,style=italic"` -} +```bash +go install github.com/flanksource/clicky/cmd/clicky@latest ``` -Style tag options: -- **`color=tailwind-class`** - Text colors (red, green, blue, etc.) -- **`font=weight`** - bold, semibold, medium, normal -- **`style=modifier`** - italic, underline, line-through -- **`opacity=level`** - 25, 50, 75, 100 - -#### Tailwind CSS Support +For local development: -The formatters package provides comprehensive Tailwind CSS integration: - -```go -type StyledContent struct { - Title string `pretty:"color=blue-600,font=bold,text=lg"` - Status string `pretty:"color=green-500"` - Footer string `pretty:"color=gray-500,style=italic"` -} +```bash +make build +./clicky --help ``` -Supported Tailwind utilities: -- **Colors**: `text-{color}-{shade}` (e.g., text-blue-600, text-red-500) -- **Typography**: `font-bold`, `font-semibold`, `italic`, `underline` -- **Spacing**: `p-{value}`, `px-{value}`, `py-{value}`, `pt-{value}`, etc. -- **Opacity**: `opacity-25`, `opacity-50`, `opacity-75`, `opacity-100` +The `clicky` binary formats JSON/YAML data with a schema, validates schemas, runs the API linter, and can expose its own Cobra commands through OpenAPI and MCP. -#### Format Options - -Control output behavior with `FormatOptions`: - -```go -options := clicky.FormatOptions{ - Format: "markdown", - NoColor: false, - Output: "report.md", -} - -// Write to file -err := clicky.FormatToFile(users, options, "report.md") - -// Or get as string -result, err := clicky.Format(users, options) +```bash +clicky pretty --schema examples/order-schema.yaml examples/example-data.json +clicky pretty --schema examples/order-schema.yaml --format html --output order.html examples/example-data.json +clicky schema validate examples/order-schema.yaml +clicky schema example -o schema.yaml +clicky lint ./... ``` -### Task System - -The task system provides comprehensive concurrent task execution with progress tracking and visual rendering. +## Library Usage -#### Core Concepts - -##### Task Lifecycle - -Tasks progress through well-defined states with visual indicators: -- **StatusPending** (⏳): Task is queued but not yet started -- **StatusRunning** (⟳): Task is currently executing -- **StatusSuccess** (✓): Task completed successfully -- **StatusFailed** (✗): Task failed with an error -- **StatusWarning** (⚠): Task completed with warnings -- **StatusCancelled** (⊘): Task was canceled - -##### TypedTask for Type Safety +### Format Structured Data ```go -import "github.com/flanksource/clicky/task" - -// Define a typed task that returns a string -task := task.StartTask("Fetch Data", func(ctx context.Context, t *task.Task) (string, error) { - // Perform work and return typed result - return "Hello, World!", nil -}) - -// Get typed result -result, err := task.GetResult() -// result is of type string - -// Or wait and get result in one call -wait := task.WaitFor() -if wait.Error != nil { - // Handle error -} -``` - -##### TypedGroup for Batch Processing - -```go -group := task.NewTypedGroup[UserData]("Load Users") - -user1 := group.Add("Load User 1", func(ctx context.Context, t *task.Task) (UserData, error) { - return loadUser(1) -}) - -user2 := group.Add("Load User 2", func(ctx context.Context, t *task.Task) (UserData, error) { - return loadUser(2) -}) - -// Get all results as map -results, err := group.GetResults() -if err != nil { - return err -} - -for task, userData := range results { - fmt.Printf("Task %s loaded: %+v\n", task.Name(), userData) -} -``` - -#### Status and Health System +package main -##### Health Mixin +import ( + "fmt" -Results can implement HealthMixin for automatic status determination: + "github.com/flanksource/clicky" +) -```go -type DatabaseResult struct { - Connected bool - Error error +type Server struct { + Name string `pretty:"label=Server"` + Status string `pretty:"color=green,sort"` + CPU int `pretty:"label=CPU %,color=blue"` } -func (r DatabaseResult) Health() task.Health { - if r.Error != nil { - return task.HealthError - } - if !r.Connected { - return task.HealthWarning - } - return task.HealthOK +func main() { + servers := []Server{ + {Name: "api-01", Status: "ready", CPU: 31}, + {Name: "db-01", Status: "ready", CPU: 54}, + } + + out, err := clicky.Format(servers, clicky.FormatOptions{Format: "pretty"}) + if err != nil { + panic(err) + } + fmt.Print(out) } - -// Task status will automatically reflect the health -task.SetResult(DatabaseResult{Connected: true}) -// Task status becomes StatusSuccess automatically -``` - -#### Concurrency Control - -##### Manager-Level Concurrency - -```go -manager := task.NewManager(task.WithMaxConcurrency(10)) -// Maximum 10 tasks running simultaneously ``` -##### Group-Level Concurrency +Supported formats include `pretty`, `json`, `yaml`, `csv`, `markdown`, `html`, `html-react`, `html-static`, `pdf`, `slack`, `excel`, and `tree`. Common aliases such as `md`, `yml`, and `xlsx` are accepted. -```go -group := task.NewGroup("API Calls", task.WithConcurrency(3)) -// Maximum 3 concurrent tasks within this group -``` - -#### Error Handling and Retry - -##### Retry Configuration +`FormatOptions.Format` can also describe multiple sinks: ```go -retryConfig := task.RetryConfig{ - RetryableErrors: []string{"timeout", "connection", "rate limit"}, - BaseDelay: 1 * time.Second, - MaxDelay: 30 * time.Second, - BackoffFactor: 2.0, - JitterFactor: 0.1, - MaxRetries: 3, -} - -task := task.StartTaskWithOptions("Flaky Operation", taskFunc, - task.WithRetry(retryConfig), -) -``` - -#### Progress Tracking - -```go -task := task.StartTask("Upload Files", func(ctx context.Context, t *task.Task) error { - files := getFilesToUpload() - total := len(files) - - for i, file := range files { - t.SetProgress(i, total) - t.Infof("Uploading %s...", file.Name) - err := uploadFile(file) - if err != nil { - return err - } - } - - t.SetProgress(total, total) // 100% complete - return nil +clicky.PrintAndWriteSinks(data, clicky.FormatOptions{ + Format: "pretty,json=out.json,markdown=summary.md", }) ``` -#### Integration Examples - -##### CLI Tool Integration - -```go -func runCommand(args []string) error { - manager := task.NewManager( - task.WithVerbose(verbose), - task.WithNoProgress(noProgress), - ) - - // Start background tasks - task1 := task.StartTask("Validate Input", validateInput) - task2 := task.StartTask("Load Configuration", loadConfig) - - // Wait for prerequisites - task1.WaitFor() - task2.WaitFor() - - // Main processing - mainTask := task.StartTask("Process Data", processData) - return mainTask.WaitFor().Error -} -``` - -##### Batch Processing +### Run Typed Tasks ```go -func processBatch(items []Item) error { - group := task.NewTypedGroup[ProcessedItem]("Batch Processing", - task.WithConcurrency(5), - ) - - // Process items concurrently - for i, item := range items { - group.Add(fmt.Sprintf("Process Item %d", i+1), - func(ctx context.Context, t *task.Task) (ProcessedItem, error) { - return processItem(item) - }) - } - - // Wait for all processing to complete - results, err := group.GetResults() - if err != nil { - return fmt.Errorf("batch processing failed: %w", err) - } - - // Handle results - for task, result := range results { - fmt.Printf("Task %s: %+v\n", task.Name(), result) - } - - return nil -} -``` - -### Middleware System - -The middleware package provides a comprehensive, configurable middleware system for Echo v4 with 20+ middleware types, YAML configuration support, and CEL-based dynamic processing. - -#### Quick Start - -The simplest way to get started is using preset configurations: +package main -```go import ( - "github.com/flanksource/clicky/middleware" - "github.com/labstack/echo/v4" + "fmt" + "time" + + "github.com/flanksource/clicky" ) func main() { - e := echo.New() - - // Apply default middleware (CORS, Logger, Recover, RequestID, Gzip, Secure) - middleware.ApplyDefaultMiddleware(e) - - // Or load from YAML file - config, err := middleware.LoadConfigFromYAML("middleware.yaml") - if err != nil { - log.Fatal(err) - } - middleware.ApplyMiddleware(e, config) - - e.Start(":8080") -} -``` - -#### YAML Configuration - -##### Development Configuration - -```yaml -# development.yaml - Developer-friendly with permissive CORS -cors: - allow_origins: ["*"] - allow_methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"] - allow_headers: ["*"] - -logger: - format: "[${time_rfc3339_nano}] ${method} ${uri} (${status}) ${latency_human}\n" - -recover: - stack_size: 8192 # Larger stack for debugging -``` - -##### Production Configuration - -```yaml -# production.yaml - Security hardened for production -cors: - allow_origins: ["https://yourdomain.com"] - allow_credentials: true - -logger: - format: '{"time":"${time_rfc3339}","method":"${method}","uri":"${uri}","status":${status}}' - -csrf: - token_length: 32 - cookie_secure: true - cookie_http_only: true - -rate_limiter: - requests_per_second: 20 - burst: 30 - -secure: - hsts_max_age: 31536000 - content_security_policy: "default-src 'self'" -``` - -#### Middleware Categories - -##### Core Middleware -- **`cors`**: Cross-Origin Resource Sharing -- **`logger`**: Request logging with customizable formats -- **`recover`**: Panic recovery with stack traces -- **`request_id`**: Unique request identifier generation - -##### Security Middleware -- **`basic_auth`**: HTTP Basic Authentication with htpasswd/userpass files -- **`jwt_auth`**: JWT authentication (HMAC/RSA/ECDSA) with CEL validation -- **`key_auth`**: API key authentication -- **`csrf`**: Cross-Site Request Forgery protection -- **`secure`**: Security headers (XSS, HSTS, CSP, etc.) - -##### Performance & Reliability -- **`rate_limiter`**: Request rate limiting with memory store -- **`timeout`**: Request timeout middleware -- **`gzip`**: Response compression -- **`body_limit`**: Request body size limiting - -#### Authentication Examples - -##### Basic Authentication with htpasswd - -```yaml -basic_auth: - htpasswd_file: ".htpasswd" - realm: "Admin Panel" -``` - -##### JWT Authentication - -```yaml -jwt_auth: - signing_key: "your-secret-key" - signing_method: "HS256" - token_lookup: "header:Authorization" - token_prefix: "Bearer " - validation: 'claims.exp > now() && claims.aud == "api"' -``` - -##### API Key Authentication - -```yaml -key_auth: - key_lookup: "header:X-API-Key" -``` - -#### CEL Integration - -The middleware system includes powerful CEL (Common Expression Language) integration for dynamic request/response processing: - -```yaml -interceptors: - # Authentication guard - - name: "auth_guard" - regex: "^/api/.*" - condition: 'request.method != "OPTIONS"' - request: - - 'headers.get("Authorization") == "" ? {status: 401, body: "Unauthorized"} : null' - - # Response headers - - name: "security_headers" - regex: ".*" - response: - - '{headers: {"X-Content-Type-Options": "nosniff"}}' -``` - -Available CEL Functions: -- **Request/response manipulation**: `setHeader()`, `returnStatus()`, `returnJSON()` -- **Authentication helpers**: `hasRole()`, `getUser()`, `validateJWT()` -- **Utility functions**: `jsonToXML()` plus all Gomplate functions -- **Variables**: `request`, `response`, `context`, `headers`, `body`, `user`, `claims` - -#### Configuration Validation - -All configurations are validated before application: - -```go -if err := middleware.ValidateConfig(config); err != nil { - log.Fatalf("Invalid configuration: %v", err) + job := clicky.StartTask("load servers", func(ctx clicky.Context, t *clicky.Task) ([]string, error) { + for i := 1; i <= 3; i++ { + t.SetProgress(i, 3) + time.Sleep(100 * time.Millisecond) + } + return []string{"api-01", "db-01"}, nil + }) + + servers, err := job.GetResult() + if err != nil { + panic(err) + } + fmt.Println(servers) + + clicky.WaitForGlobalCompletion() } ``` -Validation checks include: -- CORS credential/origin compatibility -- Rate limiter positive values -- Timeout positive durations -- Body limit format validation -- JWT key file existence -- Proxy target URL validity - -### OpenAPI Generation & Documentation Server - -The OpenAPI package automatically converts Cobra CLI commands into OpenAPI 3.0.3 specifications and serves interactive Swagger UI documentation. +For grouped work, use `clicky.StartGroup[T]` or `task.StartGroup[T]` with `task.WithConcurrency(n)`. -#### Fluent Integration - -The easiest way to add OpenAPI functionality is through the fluent extensions API: +### Add Common Flags to a Cobra CLI ```go -import ( - "github.com/flanksource/clicky/extensions" - "github.com/spf13/cobra" -) +rootCmd := &cobra.Command{Use: "myapp"} +flags := clicky.BindAllFlagsToCommand(rootCmd, "format", "tasks") -func main() { - rootCmd := &cobra.Command{ - Use: "myapp", - Short: "My CLI application", - } - - // Add your application commands - rootCmd.AddCommand(apiCommands()...) - rootCmd.AddCommand(databaseCommands()...) - - // Add OpenAPI functionality with fluent interface - extensions.CobraExtensions(rootCmd). - OpenAPICommand(). // Adds 'openapi generate' and 'openapi serve' - MCPCommand() // Adds 'mcp serve' for AI integration - - // Or add all functionality at once - // extensions.CobraExtensions(rootCmd).All() - - rootCmd.Execute() +rootCmd.PersistentPreRun = func(cmd *cobra.Command, args []string) { + flags.UseFlags() } ``` -#### OpenAPI Generation - -Generate OpenAPI specifications from your CLI commands: - -```bash -# Generate OpenAPI spec as JSON -myapp openapi generate --output api-spec.json - -# Generate as YAML with custom metadata -myapp openapi generate \ - --format yaml \ - --title "My API" \ - --version "2.0.0" \ - --server-url "https://api.example.com" \ - --output openapi.yaml - -# Output to stdout -myapp openapi generate --format yaml -``` - -#### Interactive Documentation Server - -Start a live documentation server with Swagger UI: - -```bash -# Start server with default settings -myapp openapi serve - -# Advanced options -myapp openapi serve \ - --port 3000 \ - --host 0.0.0.0 \ - --title "My API Documentation" \ - --description "Interactive API docs" \ - --auto-refresh \ - --open # Automatically open browser -``` - -The server provides: -- **Interactive Swagger UI** at `http://localhost:8080/` -- **OpenAPI JSON spec** at `http://localhost:8080/api/openapi.json` -- **OpenAPI YAML spec** at `http://localhost:8080/api/openapi.yaml` -- **Health check** at `http://localhost:8080/health` - -#### Command Execution via HTTP - -Enable dynamic command execution through HTTP endpoints: - -```bash -myapp openapi serve --enable-executor -``` - -This creates REST endpoints for each CLI command that can be called via HTTP: - -```bash -# Execute CLI commands via HTTP -curl -X POST http://localhost:8080/api/v1/database/connect \ - -H "Content-Type: application/json" \ - -d '{"host": "localhost", "database": "myapp", "user": "admin"}' - -curl -X GET http://localhost:8080/api/v1/cache/get/user:123 -``` - -#### Custom OpenAPI Configuration +This adds grouped logging, formatting, and task flags such as `--format`, `--filter`, `--no-color`, `--no-progress`, and `--max-concurrent`. -For more control, configure OpenAPI generation programmatically: +### Add OpenAPI and MCP to a Cobra CLI ```go -import "github.com/flanksource/clicky/rpc" - -customConfig := &rpc.OpenAPIConfig{ - Title: "My API", - Description: "Comprehensive API documentation", - Version: "2.0.0", - Contact: &rpc.OpenAPIContact{ - Name: "API Team", - Email: "api@example.com", - URL: "https://example.com/contact", - }, - License: &rpc.OpenAPILicense{ - Name: "MIT", - URL: "https://opensource.org/licenses/MIT", - }, - Servers: []rpc.OpenAPIServer{ - { - URL: "https://api.example.com/v1", - Description: "Production server", - }, - { - URL: "https://staging-api.example.com/v1", - Description: "Staging server", - }, - }, -} +import "github.com/flanksource/clicky/extensions" -extensions.CobraExtensions(rootCmd). - OpenAPICommandWithConfig(customConfig) +extensions.CobraExtensions(rootCmd).All() ``` -#### MCP (Model Context Protocol) Integration +This adds: -Clicky includes built-in MCP support for AI assistant integration: +- `openapi generate` +- `openapi validate ` +- `openapi serve` +- `mcp serve` +- `mcp config` +- `mcp tools` +- `mcp install` +- `mcp prompts` -```bash -# Start MCP server -myapp mcp serve +Example commands: -# Auto-expose all commands +```bash +myapp openapi generate --format yaml --output openapi.yaml +myapp openapi serve --port 8080 --enable-executor +myapp mcp tools --format markdown myapp mcp serve --auto-expose - -# View MCP configuration -myapp mcp config -``` - -Configure Claude Desktop (`claude_desktop_config.json`): - -```json -{ - "mcpServers": { - "myapp": { - "command": "/path/to/myapp", - "args": ["mcp", "serve"] - } - } -} ``` -When MCP tools are executed, they automatically use Clicky's task system for: -- Visual progress tracking with progress bars -- Concurrent execution control -- Retry logic with exponential backoff -- Timeout protection -- Beautiful styled output - -### Themes - -```go -theme := Theme{ - Primary: lipgloss.Color("#8A2BE2"), - Secondary: lipgloss.Color("#4169E1"), - Success: lipgloss.Color("#32CD32"), - Warning: lipgloss.Color("#FFD700"), - Error: lipgloss.Color("#FF6347"), - Info: lipgloss.Color("#00CED1"), - Muted: lipgloss.Color("#808080"), -} - -parser.Theme = theme -``` - -## Integration Examples - -### Complete CLI Application - -Here's a comprehensive example showcasing all Clicky components: +### Configure Echo Middleware ```go package main import ( - "context" - "time" - - "github.com/flanksource/clicky" - "github.com/flanksource/clicky/extensions" - "github.com/flanksource/clicky/middleware" - "github.com/flanksource/clicky/task" - "github.com/labstack/echo/v4" - "github.com/spf13/cobra" -) + "log" -// Data model with pretty formatting tags -type ServerStatus struct { - Name string `pretty:"label=Server Name,color=blue,table"` - Status string `pretty:"label=Status,color=green,table"` - Uptime string `pretty:"label=Uptime,table"` - Load float64 `pretty:"label=Load Average,format=float,table"` - Updated time.Time `pretty:"label=Last Updated,format=date,table"` -} + "github.com/flanksource/clicky/middleware" + "github.com/labstack/echo/v4" +) func main() { - rootCmd := &cobra.Command{ - Use: "server-manager", - Short: "Server management CLI with web interface", - } - - // Add application commands - rootCmd.AddCommand(newServersCommand()) - rootCmd.AddCommand(newWebServerCommand()) - - // Add Clicky extensions - extensions.CobraExtensions(rootCmd). - OpenAPICommand(). // Auto-generate API docs and serve Swagger UI - MCPCommand() // Enable AI assistant integration - - rootCmd.Execute() -} - -func newServersCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "servers", - Short: "Server management commands", - } - - // List servers with formatted output - listCmd := &cobra.Command{ - Use: "list", - Short: "List all servers", - RunE: func(cmd *cobra.Command, args []string) error { - format, _ := cmd.Flags().GetString("format") - - // Fetch server data with concurrent tasks - servers, err := fetchServersWithTasks() - if err != nil { - return err - } - - // Format and display using clicky formatters - output, err := clicky.Format(servers, clicky.FormatOptions{ - Format: format, - }) - if err != nil { - return err - } - - fmt.Println(output) - return nil - }, - } - listCmd.Flags().StringP("format", "f", "pretty", "Output format (pretty, json, yaml, markdown, excel, slack)") - - cmd.AddCommand(listCmd) - return cmd -} - -func fetchServersWithTasks() ([]ServerStatus, error) { - // Use task system for concurrent data fetching - group := task.NewTypedGroup[ServerStatus]("Fetch Server Status", - task.WithConcurrency(3), - ) - - serverNames := []string{"web-01", "db-01", "cache-01"} - - for _, name := range serverNames { - serverName := name // Capture for closure - group.Add(fmt.Sprintf("Check %s", serverName), - func(ctx context.Context, t *task.Task) (ServerStatus, error) { - t.Infof("Checking server %s...", serverName) - - // Simulate status check with progress - for i := 0; i <= 100; i += 25 { - t.SetProgress(i, 100) - time.Sleep(100 * time.Millisecond) - } - - return ServerStatus{ - Name: serverName, - Status: "Running", - Uptime: "5d 12h", - Load: 0.75, - Updated: time.Now(), - }, nil - }) - } - - results, err := group.GetResults() - if err != nil { - return nil, err - } - - // Convert map to slice - servers := make([]ServerStatus, 0, len(results)) - for _, server := range results { - servers = append(servers, server) - } - - return servers, nil -} - -func newWebServerCommand() *cobra.Command { - return &cobra.Command{ - Use: "web", - Short: "Start web server with middleware", - RunE: func(cmd *cobra.Command, args []string) error { - e := echo.New() - - // Apply middleware from YAML config - config, err := middleware.LoadConfigFromYAML("middleware.yaml") - if err != nil { - // Fallback to default middleware - middleware.ApplyDefaultMiddleware(e) - } else { - middleware.ApplyMiddleware(e, config) - } - - // Add API routes - api := e.Group("/api/v1") - api.GET("/servers", handleListServers) - - return e.Start(":8080") - }, - } -} - -func handleListServers(c echo.Context) error { - servers, err := fetchServersWithTasks() - if err != nil { - return c.JSON(500, map[string]string{"error": err.Error()}) - } - return c.JSON(200, servers) + e := echo.New() + + config, err := middleware.LoadConfigFromYAML("config/production.yaml") + if err != nil { + log.Fatal(err) + } + if err := middleware.ValidateConfig(config); err != nil { + log.Fatal(err) + } + + middleware.ApplyMiddleware(e, config) + log.Fatal(e.Start(":8080")) } ``` -### Usage Examples - -```bash -# List servers with pretty table format -server-manager servers list - -# Export to different formats -server-manager servers list --format json > servers.json -server-manager servers list --format excel > servers.xlsx -server-manager servers list --format markdown > servers.md - -# Start web server with middleware -server-manager web - -# Generate OpenAPI documentation -server-manager openapi generate --output api-docs.yaml - -# Start interactive API documentation server -server-manager openapi serve --port 3000 --open - -# Enable AI assistant integration -server-manager mcp serve -``` - -## Project Architecture - -Clicky is organized into four main packages that work together: +Preset helpers are also available: -``` -github.com/flanksource/clicky/ -├── formatters/ # Multi-format data output with styling -│ ├── pretty.go # Table and tree formatting -│ ├── exports.go # JSON, YAML, CSV, Excel, PDF output -│ └── styling.go # Tailwind CSS integration -├── task/ # Concurrent execution with progress tracking -│ ├── manager.go # Task coordination and limits -│ ├── group.go # Batch processing with typing -│ └── health.go # Status and health systems -├── middleware/ # Echo v4 web middleware system -│ ├── config.go # YAML configuration loading -│ ├── auth.go # Authentication middleware -│ ├── security.go # Security and CORS middleware -│ └── cel.go # CEL expression processing -├── rpc/ # OpenAPI generation and HTTP serving -│ ├── openapi.go # OpenAPI 3.0.3 spec generation -│ ├── serve.go # Swagger UI documentation server -│ └── executor.go # HTTP command execution -├── extensions/ # Fluent Cobra integration -│ └── cobra.go # .OpenAPICommand(), .MCPCommand() -└── mcp/ # Model Context Protocol for AI - ├── server.go # MCP server implementation - └── tools.go # CLI-to-MCP tool conversion +```go +middleware.ApplyMinimalMiddleware(e) +middleware.ApplyDefaultMiddleware(e) +middleware.ApplyProductionMiddleware(e) ``` -### Component Integration +## Schema Formatting -- **Formatters** ↔ **Tasks**: Tasks can output formatted results using any supported format -- **Middleware** ↔ **OpenAPI**: Web servers get automatic API documentation -- **Tasks** ↔ **MCP**: AI tools execute with visual progress tracking -- **Extensions** ↔ **All**: Fluent API provides simple integration points +The CLI can format dynamic JSON/YAML data using schema files. A schema describes fields, labels, types, styles, color rules, table fields, tree fields, and format-specific options. -## Installation - -Add Clicky to your Go project: +```yaml +fields: + - name: id + label: Order ID + type: string + style: text-blue-600 font-bold + - name: status + type: string + color_options: + green: completed + yellow: processing + red: failed + - name: total_amount + type: float + format: currency + - name: items + type: array + format: table + table_options: + fields: + - name: product_name + type: string + - name: quantity + type: int + - name: price + type: float + format: currency +``` + +Generate a fuller example with: ```bash -go get github.com/flanksource/clicky@latest +clicky schema example ``` -For specific packages: +## Package Map -```bash -# For formatters only -go get github.com/flanksource/clicky/formatters - -# For task system -go get github.com/flanksource/clicky/task +- `api`: render primitives such as text, tables, trees, code blocks, badges, links, stack traces, and schema parsing +- `formatters`: output managers and implementations for terminal, JSON, YAML, CSV, Markdown, HTML, PDF, Excel, Slack, and tree formats +- `task`: task manager, typed tasks, groups, progress rendering, retries, shutdown handling, and output capture +- `middleware`: Echo v4 middleware configuration, validation, auth, interceptors, and presets +- `rpc`: Cobra-to-OpenAPI generation, Swagger UI server, validation, and HTTP command execution +- `mcp`: Model Context Protocol server and tool discovery for Cobra commands +- `extensions`: fluent helpers that attach OpenAPI and MCP commands to Cobra roots +- `exec`: command execution wrappers with logging and process-group handling +- `flags`: struct-tag flag binding helpers +- `text`: tokenization, redaction, and line processing utilities +- `lint`: Go analyzer for Clicky API usage -# For Echo middleware -go get github.com/flanksource/clicky/middleware +## Development -# For OpenAPI generation -go get github.com/flanksource/clicky/rpc -go get github.com/flanksource/clicky/extensions +```bash +go mod download +make test +make lint +make build ``` -## Key Dependencies - -Clicky builds on proven Go libraries: - -- **Core**: `github.com/spf13/cobra` - CLI framework -- **Styling**: `github.com/charmbracelet/lipgloss` - Terminal styling and themes -- **Web**: `github.com/labstack/echo/v4` - High performance web framework -- **Data**: `gopkg.in/yaml.v3`, `github.com/xuri/excelize/v2` - YAML and Excel support -- **PDF**: `github.com/flanksource/maroto/v2` - PDF generation -- **Concurrency**: `golang.org/x/sync` - Advanced synchronization primitives - -## Testing - -Run the comprehensive test suite: +Useful targeted commands: ```bash -# Run all tests -go test -v ./... - -# Test specific packages -go test -v ./formatters/... -go test -v ./task/... -go test -v ./middleware/... - -# Run integration tests -go test -v -tags=integration ./... +go test ./formatters/... +go test ./task/... +go test ./middleware/... +go test -tags integration ./rpc/... -run TestOpenAPIServe_E2E ``` -## Best Practices - -### Security -- Always use HTTPS in production with HTTPSRedirect middleware -- Enable CSRF protection for web applications -- Set restrictive CORS origins (avoid "*" in production) -- Use strong JWT signing keys and rotate them regularly -- Implement rate limiting to prevent abuse - -### Performance -- Enable compression with Gzip for API responses -- Set appropriate timeouts to prevent resource exhaustion -- Configure appropriate body limits based on use case -- Use request IDs for tracing and debugging -- Limit task concurrency based on system resources - -### Configuration Management -- Use YAML files for environment-specific configs -- Validate configurations before deployment -- Use environment variables for secrets -- Version your middleware and formatting configurations -- Test configurations with unit tests - -## Contributing - -Clicky is designed to be extensible and welcomes contributions: - -### Areas for Contribution - -1. **New Formatters**: Add support for additional output formats (XML, Protobuf, etc.) -2. **Enhanced Middleware**: Additional Echo middleware types and CEL functions -3. **Task Features**: Advanced scheduling, dependencies, and workflows -4. **OpenAPI Enhancement**: Support for OpenAPI 3.1, additional specification features -5. **Performance**: Optimize reflection usage and memory allocation -6. **Documentation**: Examples, tutorials, and best practices - -### Development Setup +The task UI bundle is built separately: ```bash -git clone https://github.com/flanksource/clicky.git -cd clicky -go mod download -go test -v ./... +make task-ui ``` -## License +## Examples + +The `examples/` directory includes focused demos for: -Clicky is released under the MIT License. See [LICENSE](LICENSE) for details. +- schema-driven formatting +- Cobra integration +- OpenAPI and Swagger serving +- MCP integration +- Echo middleware +- task manager behavior +- file tree, PDF widgets, and entity workflows -This framework follows Go best practices and is designed for production use in enterprise environments. +Start with `examples/README.md` and the schema/data pairs in `examples/order-schema.yaml` and `examples/example-data.json`. diff --git a/cobra_command.go b/cobra_command.go index 7c2fc48e..321ce0e6 100644 --- a/cobra_command.go +++ b/cobra_command.go @@ -1,12 +1,14 @@ package clicky import ( + "errors" "fmt" "os" "reflect" "strings" "sync" + "github.com/flanksource/clicky/api" "github.com/flanksource/clicky/flags" "github.com/flanksource/commons/logger" "github.com/samber/lo" @@ -243,7 +245,19 @@ func AddNamedCommand[T any, R any](name string, parent *cobra.Command, opts T, f // Call the function result, err := fn(optsValue.Interface().(T)) if err != nil { - logger.GetSlogLogger().WithSkipReportLevel(2).Errorf("Command %s failed: %w", name, err) + // An error that carries a clicky rendering interface + // (Pretty/Textable/Tree*) is rendered through the same format + // pipeline as a success result — honouring --format — instead of + // being collapsed to its Error() line. The error is still + // returned so cobra exits non-zero. + if rich, ok := renderableError(err); ok { + if specErr := Flags.ParseFormatSpec(); specErr != nil { + return specErr + } + PrintAndWriteSinks(rich, Flags.FormatOptions) + } else { + logger.GetSlogLogger().WithSkipReportLevel(2).Errorf("Command %s failed: %v", name, err) + } return err } @@ -267,6 +281,21 @@ func isStdinAvailable() bool { return (stat.Mode() & os.ModeCharDevice) == 0 } +// renderableError reports whether err — or any error in its Unwrap chain — +// carries a clicky rendering interface (Pretty / Textable / Tree*), so the +// command runner can render it through the format pipeline instead of just +// logging Error(). The chain is walked so a fmt-wrapped rich error still +// renders. The returned value is the matched error, ready to hand to +// PrintAndWriteSinks. +func renderableError(err error) (any, bool) { + for e := err; e != nil; e = errors.Unwrap(e) { + if api.TryTypedValue(e) != nil { + return e, true + } + } + return nil, false +} + type Name interface { GetName() string } diff --git a/cobra_command_test.go b/cobra_command_test.go new file mode 100644 index 00000000..c45078b9 --- /dev/null +++ b/cobra_command_test.go @@ -0,0 +1,48 @@ +package clicky + +import ( + "errors" + "fmt" + "testing" + + "github.com/flanksource/clicky/api" +) + +// prettyErr is a test error that carries a clicky rendering interface — +// the shape renderableError must detect so the command runner renders it +// through the format pipeline instead of collapsing it to Error(). +type prettyErr struct{ msg string } + +func (e *prettyErr) Error() string { return e.msg } +func (e *prettyErr) Pretty() api.Text { return api.Text{Content: "rendered: " + e.msg} } + +func TestRenderableError_DetectsErrorImplementingPretty(t *testing.T) { + rich, ok := renderableError(&prettyErr{msg: "boom"}) + if !ok { + t.Fatalf("renderableError must detect an error implementing Pretty()") + } + if api.TryTypedValue(rich) == nil { + t.Fatalf("the returned value must be renderable by the format pipeline") + } +} + +func TestRenderableError_WalksWrappedChain(t *testing.T) { + // A fmt-wrapped rich error must still be detected — clicky walks the + // Unwrap chain so a renderable cause survives an outer fmt.Errorf. + wrapped := fmt.Errorf("dispatching: %w", &prettyErr{msg: "boom"}) + rich, ok := renderableError(wrapped) + if !ok { + t.Fatalf("renderableError must walk the Unwrap chain to find a renderable cause") + } + if _, isPretty := rich.(*prettyErr); !isPretty { + t.Fatalf("renderableError must return the matched *prettyErr, got %T", rich) + } +} + +func TestRenderableError_PlainErrorIsNotRenderable(t *testing.T) { + // A plain error carries no rendering interface — the command runner + // must fall back to logging Error(), not the render pipeline. + if _, ok := renderableError(errors.New("plain failure")); ok { + t.Fatalf("a plain error must not be reported as renderable") + } +} diff --git a/entity.go b/entity.go index 31e23d96..c4eb1077 100644 --- a/entity.go +++ b/entity.go @@ -93,6 +93,11 @@ type ActionInfo struct { // and populated into the flag map passed to DataFunc. FlagsType reflect.Type ResponseType reflect.Type + // OptionalID, when true, makes the positional argument optional on + // the generated action command — the action is invokable with no + // argument (and the `id` passed to the run func is empty). Use for + // actions whose target is supplied entirely through flags. + OptionalID bool } // BulkActionInfo is the type-erased representation of a bulk action. @@ -135,11 +140,12 @@ type EntityAction interface { } type actionSpec[R any] struct { - name string - short string - method string - run func(id string, flags map[string]string) (R, error) - flags ActionFlags + name string + short string + method string + run func(id string, flags map[string]string) (R, error) + flags ActionFlags + optionalID bool } // Action creates a typed custom operation on a single entity by ID. @@ -169,6 +175,14 @@ func (a *actionSpec[R]) WithMethod(method string) *actionSpec[R] { return a } +// WithOptionalID makes the positional argument optional on the +// generated action command. Use for actions whose target is supplied +// entirely through flags; the `id` passed to the run func is then empty. +func (a *actionSpec[R]) WithOptionalID() *actionSpec[R] { + a.optionalID = true + return a +} + func (a *actionSpec[R]) actionInfo() ActionInfo { return ActionInfo{ Name: a.name, @@ -176,12 +190,13 @@ func (a *actionSpec[R]) actionInfo() ActionInfo { Method: a.method, FlagsType: actionFlagsType(a.flags), ResponseType: responseTypeOf[R](), + OptionalID: a.optionalID, DataFunc: func(flagMap map[string]string, args []string) (any, error) { id := flagMap["id"] if id == "" && len(args) > 0 { id = args[0] } - if id == "" { + if id == "" && !a.optionalID { return nil, fmt.Errorf("id is required") } return a.run(id, flagMap) @@ -621,7 +636,7 @@ func generateEntityCLI(parent *cobra.Command, entity EntityInfo) { DataFunc: action.DataFunc, FlagsType: action.FlagsType, ResponseType: action.ResponseType, - }, entity.ValidArgs, "action", "", "entity", action.Name, "id", false, false) + }, entity.ValidArgs, "action", "", "entity", action.Name, "id", false, false, action.OptionalID) } for _, ba := range entity.BulkActions { @@ -647,6 +662,7 @@ func generateEntitySubcommand(parent *cobra.Command, entity EntityInfo, op Entit "id", false, false, + false, ) case "create": generateBodyCommand(parent, "create", fmt.Sprintf("Create a %s", entity.Name), op) @@ -666,6 +682,7 @@ func generateEntitySubcommand(parent *cobra.Command, entity EntityInfo, op Entit "id", false, false, + false, ) } } @@ -720,16 +737,23 @@ func generateIDCommand( idParam string, supportsLookup bool, supportsFilterMode bool, + optionalID bool, ) { hasFlags := op.FlagsType != nil - use := fmt.Sprintf("%s ", verb) + idToken := "" + args := cobra.ExactArgs(1) + if optionalID { + idToken = "[id]" + args = cobra.MaximumNArgs(1) + } + use := fmt.Sprintf("%s %s", verb, idToken) if hasFlags { - use = fmt.Sprintf("%s [flags]", verb) + use = fmt.Sprintf("%s %s [flags]", verb, idToken) } cmd := &cobra.Command{ Use: use, Short: short, - Args: cobra.ExactArgs(1), + Args: args, RunE: func(c *cobra.Command, args []string) error { var flagMap map[string]string if hasFlags { diff --git a/entity_filters_test.go b/entity_filters_test.go index 4629d2ce..f59b3136 100644 --- a/entity_filters_test.go +++ b/entity_filters_test.go @@ -624,3 +624,76 @@ func TestEntityValidArgsPropagateToGeneratedIDCommands(t *testing.T) { } } } + +func TestActionWithOptionalIDAcceptsNoPositionalArg(t *testing.T) { + resetEntityRegistry(t) + defer resetEntityRegistry(t) + + RegisterEntity(Entity[entityFilterTestEntity, entityFilterTestOpts, any]{ + Name: "optional-id-entity", + Get: func(id string) (any, error) { return id, nil }, + Actions: []EntityAction{ + Action("scan", func(id string, _ map[string]string) (any, error) { + return id, nil + }).WithShort("Scan with no id").WithOptionalID(), + Action("restart", func(id string, _ map[string]string) (any, error) { + return id, nil + }).WithShort("Restart one entity"), + }, + }) + + root := &cobra.Command{Use: "root"} + GenerateCLI(root) + + scan, _, err := root.Find([]string{"optional-id-entity", "scan"}) + if err != nil || scan == nil { + t.Fatalf("expected to find scan command, got err=%v", err) + } + // The optional-id action accepts zero args but still rejects more than one. + if err := scan.Args(scan, nil); err != nil { + t.Fatalf("optional-id action must accept zero args, got: %v", err) + } + if err := scan.Args(scan, []string{"x", "y"}); err == nil { + t.Fatalf("optional-id action must still reject more than one arg") + } + if scan.Use != "scan [id]" { + t.Fatalf("optional-id action use should show [id], got %q", scan.Use) + } + + // A normal action still forces exactly one positional arg. + restart, _, err := root.Find([]string{"optional-id-entity", "restart"}) + if err != nil || restart == nil { + t.Fatalf("expected to find restart command, got err=%v", err) + } + if err := restart.Args(restart, nil); err == nil { + t.Fatalf("a normal action must still require its id arg") + } + if restart.Use != "restart " { + t.Fatalf("normal action use should show , got %q", restart.Use) + } +} + +func TestActionInfoOptionalIDSkipsIDRequiredCheck(t *testing.T) { + var gotID = "sentinel" + spec := Action("scan", func(id string, _ map[string]string) (any, error) { + gotID = id + return id, nil + }).WithOptionalID() + + // The DataFunc must not error on a missing id when OptionalID is set; + // the run func receives an empty id. + if _, err := spec.actionInfo().DataFunc(map[string]string{}, nil); err != nil { + t.Fatalf("optional-id DataFunc must not require an id: %v", err) + } + if gotID != "" { + t.Fatalf("expected empty id passed to run func, got %q", gotID) + } + + // Without WithOptionalID the missing-id check still fires. + plain := Action("restart", func(id string, _ map[string]string) (any, error) { + return id, nil + }) + if _, err := plain.actionInfo().DataFunc(map[string]string{}, nil); err == nil { + t.Fatalf("a normal action must still reject a missing id") + } +} diff --git a/examples/go.mod b/examples/go.mod index 89c7c687..95abffa7 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -4,7 +4,7 @@ go 1.26.1 require ( github.com/flanksource/clicky v1.21.1 - github.com/flanksource/commons v1.51.0 + github.com/flanksource/commons v1.51.3 github.com/labstack/echo/v4 v4.13.4 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 @@ -23,11 +23,11 @@ require ( github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/catppuccin/go v0.3.0 // indirect - github.com/cert-manager/cert-manager v1.19.4 // indirect + github.com/cert-manager/cert-manager v1.20.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 // indirect github.com/charmbracelet/bubbletea v1.3.10 // indirect - github.com/charmbracelet/colorprofile v0.4.2 // indirect + github.com/charmbracelet/colorprofile v0.4.3 // indirect github.com/charmbracelet/huh v1.0.0 // indirect github.com/charmbracelet/lipgloss v1.1.0 // indirect github.com/charmbracelet/x/ansi v0.11.6 // indirect @@ -43,8 +43,8 @@ require ( github.com/emirpasic/gods/v2 v2.0.0-alpha // indirect github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect github.com/fatih/color v1.18.0 // indirect - github.com/flanksource/gomplate/v3 v3.24.77 // indirect - github.com/flanksource/is-healthy v1.0.86 // indirect + github.com/flanksource/gomplate/v3 v3.24.78 // indirect + github.com/flanksource/is-healthy v1.0.87 // indirect github.com/flanksource/kubectl-neat v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/fxamacker/cbor/v2 v2.9.0 // indirect @@ -55,10 +55,10 @@ require ( github.com/go-stack/stack v1.8.1 // indirect github.com/go-xmlfmt/xmlfmt v1.1.3 // indirect github.com/gobwas/glob v0.2.3 // indirect - github.com/goccy/go-json v0.10.5 // indirect + github.com/goccy/go-json v0.10.6 // indirect github.com/goccy/go-yaml v1.19.2 // indirect github.com/golang-jwt/jwt/v5 v5.3.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect github.com/google/cel-go v0.27.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gosimple/slug v1.15.0 // indirect @@ -66,8 +66,8 @@ require ( github.com/hairyhenderson/toml v0.4.2-0.20210923231440-40456b8e66cf // indirect github.com/hairyhenderson/yaml v0.0.0-20220618171115-2d35fca545ce // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/itchyny/gojq v0.12.18 // indirect - github.com/itchyny/timefmt-go v0.1.7 // indirect + github.com/itchyny/gojq v0.12.19 // indirect + github.com/itchyny/timefmt-go v0.1.8 // indirect github.com/jeremywohl/flatten v1.0.1 // indirect github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24 // indirect github.com/json-iterator/go v1.1.12 // indirect @@ -77,11 +77,11 @@ require ( github.com/lmittmann/tint v1.1.3 // indirect github.com/lrita/cmap v0.0.0-20231108122212-cb084a67f554 // indirect github.com/lucasb-eyer/go-colorful v1.3.0 // indirect - github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect + github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.20 // indirect + github.com/mattn/go-runewidth v0.0.21 // indirect github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect @@ -90,17 +90,18 @@ require ( github.com/muesli/cancelreader v0.2.2 // indirect github.com/muesli/termenv v0.16.0 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/ohler55/ojg v1.28.0 // indirect + github.com/ohler55/ojg v1.28.1 // indirect github.com/oklog/ulid/v2 v2.1.1 // indirect github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect github.com/olekukonko/errors v1.2.0 // indirect github.com/olekukonko/ll v0.1.7 // indirect - github.com/olekukonko/tablewriter v1.1.3 // indirect + github.com/olekukonko/tablewriter v1.1.4 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/patrickmn/go-cache v2.1.0+incompatible // indirect github.com/pkg/errors v0.9.1 // indirect github.com/playwright-community/playwright-go v0.5700.1 // indirect - github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/prometheus/client_golang v1.23.2 // indirect github.com/prometheus/client_model v0.6.2 // indirect github.com/prometheus/common v0.67.5 // indirect @@ -114,7 +115,7 @@ require ( github.com/samber/lo v1.53.0 // indirect github.com/samber/oops v1.21.0 // indirect github.com/shirou/gopsutil/v3 v3.24.5 // indirect - github.com/shoenig/go-m1cpu v0.1.6 // indirect + github.com/shoenig/go-m1cpu v0.1.7 // indirect github.com/sirupsen/logrus v1.9.4 // indirect github.com/tidwall/gjson v1.18.0 // indirect github.com/tidwall/match v1.2.0 // indirect @@ -123,8 +124,8 @@ require ( github.com/tiendc/go-deepcopy v1.7.2 // indirect github.com/timberio/go-datemath v0.1.0 // indirect github.com/tj/go-naturaldate v1.3.0 // indirect - github.com/tklauser/go-sysconf v0.3.12 // indirect - github.com/tklauser/numcpus v0.6.1 // indirect + github.com/tklauser/go-sysconf v0.3.16 // indirect + github.com/tklauser/numcpus v0.11.0 // indirect github.com/ugorji/go/codec v1.3.1 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect @@ -135,33 +136,33 @@ require ( github.com/xuri/nfp v0.0.2-0.20250530014748-2ddeb826f9a9 // indirect github.com/yuin/gopher-lua v1.1.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect - go.opentelemetry.io/otel v1.41.0 // indirect - go.opentelemetry.io/otel/trace v1.41.0 // indirect - go.yaml.in/yaml/v2 v2.4.3 // indirect - golang.org/x/crypto v0.48.0 // indirect - golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa // indirect - golang.org/x/net v0.51.0 // indirect - golang.org/x/sync v0.19.0 // indirect - golang.org/x/sys v0.41.0 // indirect - golang.org/x/term v0.40.0 // indirect - golang.org/x/text v0.34.0 // indirect + go.opentelemetry.io/otel v1.42.0 // indirect + go.opentelemetry.io/otel/trace v1.42.0 // indirect + go.yaml.in/yaml/v2 v2.4.4 // indirect + golang.org/x/crypto v0.49.0 // indirect + golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect + golang.org/x/net v0.52.0 // indirect + golang.org/x/sync v0.20.0 // indirect + golang.org/x/sys v0.42.0 // indirect + golang.org/x/term v0.41.0 // indirect + golang.org/x/text v0.35.0 // indirect golang.org/x/time v0.14.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect google.golang.org/protobuf v1.36.11 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/sourcemap.v1 v1.0.5 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/api v0.35.2 // indirect - k8s.io/apiextensions-apiserver v0.35.2 // indirect - k8s.io/apimachinery v0.35.2 // indirect - k8s.io/client-go v0.35.2 // indirect - k8s.io/klog/v2 v2.130.1 // indirect + k8s.io/api v0.35.4 // indirect + k8s.io/apiextensions-apiserver v0.35.4 // indirect + k8s.io/apimachinery v0.35.4 // indirect + k8s.io/client-go v0.35.4 // indirect + k8s.io/klog/v2 v2.140.0 // indirect k8s.io/kube-openapi v0.0.0-20260304202019-5b3e3fdb0acf // indirect k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 // indirect layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf // indirect - sigs.k8s.io/gateway-api v1.5.0 // indirect + sigs.k8s.io/gateway-api v1.5.1 // indirect sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect sigs.k8s.io/randfill v1.0.0 // indirect sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect diff --git a/examples/go.sum b/examples/go.sum index 798eb81d..e36c30ea 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -90,6 +90,8 @@ github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyY github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= github.com/cert-manager/cert-manager v1.19.4 h1:7lOkSYj+nJNjgGFfAznQzPpOfWX+1Kgz6xUXwTa/K5k= github.com/cert-manager/cert-manager v1.19.4/go.mod h1:9uBnn3IK9NxjjuXmQDYhwOwFUU5BtGVB1g/voPvvcVw= +github.com/cert-manager/cert-manager v1.20.0 h1:czZamsFJ1YdKPhpv+SopJZN9t3W68vQBnFYUevSHGqY= +github.com/cert-manager/cert-manager v1.20.0/go.mod h1:3oparI7R5JyJMNXntYod9p6DucIZ84st7y/9kL6cbBE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 h1:JFgG/xnwFfbezlUnFMJy0nusZvytYysV4SCS2cYbvws= @@ -98,6 +100,8 @@ github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlv github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4= github.com/charmbracelet/colorprofile v0.4.2 h1:BdSNuMjRbotnxHSfxy+PCSa4xAmz7szw70ktAtWRYrY= github.com/charmbracelet/colorprofile v0.4.2/go.mod h1:0rTi81QpwDElInthtrQ6Ni7cG0sDtwAd4C4le060fT8= +github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q= +github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q= github.com/charmbracelet/harmonica v0.2.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao= github.com/charmbracelet/huh v1.0.0 h1:wOnedH8G4qzJbmhftTqrpppyqHakl/zbbNdXIWJyIxw= github.com/charmbracelet/huh v1.0.0/go.mod h1:5YVc+SlZ1IhQALxRPpkGwwEKftN/+OlJlnJYlDRFqN4= @@ -161,10 +165,16 @@ github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/ github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flanksource/commons v1.51.0 h1:Q7v8WTl1e/TsSPT00+QP9wdVwaJZhMsUOLBYFNPcZh4= github.com/flanksource/commons v1.51.0/go.mod h1:IAZ94jQnUMMRShmbkg4+sPHEdyQfVc7a1tl2BnL1VF8= +github.com/flanksource/commons v1.51.3 h1:sgQZ2s0XJTub4qmIlzRyH+eYXJP6UXmreCataP9mE7E= +github.com/flanksource/commons v1.51.3/go.mod h1:BxXJzAsRxsw0la7Y/ShEABa8ZbtGIdRi7PCRjiHDCJE= github.com/flanksource/gomplate/v3 v3.24.77 h1:StGjXRxeADULhxA9rXbPzAPk+C/952gNeU+LUO7qRXk= github.com/flanksource/gomplate/v3 v3.24.77/go.mod h1:IioRhY9IdwdlPI/xdZOiLHGsFJqW4Sp6yXmrqCFuh+k= +github.com/flanksource/gomplate/v3 v3.24.78 h1:zAxVx4VOUT6VDgBp5nDY4zOVbm4Y1O7+eTs0OqMrb1k= +github.com/flanksource/gomplate/v3 v3.24.78/go.mod h1:RzIg+YwNQI0eUV61LtqmhNN2Qw8ebm1cGa6IhNQmkWE= github.com/flanksource/is-healthy v1.0.86 h1:N4oxqdW8/YN7+EmEHk4rStpYXzuGADiMAXP2T75bynw= github.com/flanksource/is-healthy v1.0.86/go.mod h1:xoEeeCamUiW8fGWGyRaGL9NU4xQzou+sgDC5raguDew= +github.com/flanksource/is-healthy v1.0.87 h1:wSK9wI9tu//gdKO9JxyZe8ZQ5H7MCpwG17KdbWaiMeM= +github.com/flanksource/is-healthy v1.0.87/go.mod h1:xoEeeCamUiW8fGWGyRaGL9NU4xQzou+sgDC5raguDew= github.com/flanksource/kubectl-neat v1.0.4 h1:t5/9CqgE84oEtB0KitgJ2+WIeLfD+RhXSxYrqb4X8yI= github.com/flanksource/kubectl-neat v1.0.4/go.mod h1:Un/Voyh3cmiZNKQrW/TkAl28nAA7vwnwDGVjRErKjOw= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= @@ -202,6 +212,8 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4= github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= +github.com/goccy/go-json v0.10.6 h1:p8HrPJzOakx/mn/bQtjgNjdTcN+/S6FcG2CTtQOrHVU= +github.com/goccy/go-json v0.10.6/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM= github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= @@ -209,6 +221,8 @@ github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9v github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golangci/plugin-module-register v0.1.2/go.mod h1:1+QGTsKBvAIvPvoY/os+G5eoqxWn70HYDm2uvUyGuVw= @@ -267,8 +281,12 @@ github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLf github.com/itchyny/go-yaml v0.0.0-20251001235044-fca9a0999f15/go.mod h1:Tmbz8uw5I/I6NvVpEGuhzlElCGS5hPoXJkt7l+ul6LE= github.com/itchyny/gojq v0.12.18 h1:gFGHyt/MLbG9n6dqnvlliiya2TaMMh6FFaR2b1H6Drc= github.com/itchyny/gojq v0.12.18/go.mod h1:4hPoZ/3lN9fDL1D+aK7DY1f39XZpY9+1Xpjz8atrEkg= +github.com/itchyny/gojq v0.12.19 h1:ttXA0XCLEMoaLOz5lSeFOZ6u6Q3QxmG46vfgI4O0DEs= +github.com/itchyny/gojq v0.12.19/go.mod h1:5galtVPDywX8SPSOrqjGxkBeDhSxEW1gSxoy7tn1iZY= github.com/itchyny/timefmt-go v0.1.7 h1:xyftit9Tbw+Dc/huSSPJaEmX1TVL8lw5vxjJLK4GMMA= github.com/itchyny/timefmt-go v0.1.7/go.mod h1:5E46Q+zj7vbTgWY8o5YkMeYb4I6GeWLFnetPy5oBrAI= +github.com/itchyny/timefmt-go v0.1.8 h1:1YEo1JvfXeAHKdjelbYr/uCuhkybaHCeTkH8Bo791OI= +github.com/itchyny/timefmt-go v0.1.8/go.mod h1:5E46Q+zj7vbTgWY8o5YkMeYb4I6GeWLFnetPy5oBrAI= github.com/jeremywohl/flatten v1.0.1 h1:LrsxmB3hfwJuE+ptGOijix1PIfOoKLJ3Uee/mzbgtrs= github.com/jeremywohl/flatten v1.0.1/go.mod h1:4AmD/VxjWcI5SRB0n6szE2A6s2fsNHDLO0nAlMHgfLQ= github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24 h1:liMMTbpW34dhU4az1GN0pTPADwNmvoRSeoZ6PItiqnY= @@ -300,6 +318,7 @@ github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQ github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= +github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3/go.mod h1:autxFIvghDt3jPTLoqZ9OZ7s9qTGNAWmYCjVFWPX/zg= github.com/mailru/easyjson v0.9.1/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= @@ -309,6 +328,8 @@ github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2J github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= github.com/mattn/go-runewidth v0.0.20 h1:WcT52H91ZUAwy8+HUkdM3THM6gXqXuLJi9O3rjcQQaQ= github.com/mattn/go-runewidth v0.0.20/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= +github.com/mattn/go-runewidth v0.0.21 h1:jJKAZiQH+2mIinzCJIaIG9Be1+0NR+5sz/lYEEjdM8w= +github.com/mattn/go-runewidth v0.0.21/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= github.com/mattn/go-sqlite3 v1.14.30/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/miekg/dns v1.1.68/go.mod h1:fujopn7TB3Pu3JM69XaawiU0wqjpL9/8xGop5UrTPps= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= @@ -337,6 +358,8 @@ github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+ github.com/nrdcg/goacmedns v0.2.0/go.mod h1:T5o6+xvSLrQpugmwHvrSNkzWht0UGAwj2ACBMhh73Cg= github.com/ohler55/ojg v1.28.0 h1:8xClBgMIRRJGDUC9xNe7NprP4kD2C3mQMeon3wY4KXA= github.com/ohler55/ojg v1.28.0/go.mod h1:/Y5dGWkekv9ocnUixuETqiL58f+5pAsUfg5P8e7Pa2o= +github.com/ohler55/ojg v1.28.1 h1:Xy93DelhLSZNeWv8GPKtP6qMqkUlZlAxBP/AQcC5RfY= +github.com/ohler55/ojg v1.28.1/go.mod h1:/Y5dGWkekv9ocnUixuETqiL58f+5pAsUfg5P8e7Pa2o= github.com/oklog/ulid/v2 v2.1.1 h1:suPZ4ARWLOJLegGFiZZ1dFAkqzhMjL3J1TzI+5wHz8s= github.com/oklog/ulid/v2 v2.1.1/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 h1:zrbMGy9YXpIeTnGj4EljqMiZsIcE09mmF8XsD5AYOJc= @@ -347,6 +370,8 @@ github.com/olekukonko/ll v0.1.7 h1:WyK1YZwOTUKHEXZz3VydBDT5t3zDqa9yI8iJg5PHon4= github.com/olekukonko/ll v0.1.7/go.mod h1:RPRC6UcscfFZgjo1nulkfMH5IM0QAYim0LfnMvUuozw= github.com/olekukonko/tablewriter v1.1.3 h1:VSHhghXxrP0JHl+0NnKid7WoEmd9/urKRJLysb70nnA= github.com/olekukonko/tablewriter v1.1.3/go.mod h1:9VU0knjhmMkXjnMKrZ3+L2JhhtsQ/L38BbL3CRNE8tM= +github.com/olekukonko/tablewriter v1.1.4 h1:ORUMI3dXbMnRlRggJX3+q7OzQFDdvgbN9nVWj1drm6I= +github.com/olekukonko/tablewriter v1.1.4/go.mod h1:+kedxuyTtgoZLwif3P1Em4hARJs+mVnzKxmsCL/C5RY= github.com/olekukonko/ts v0.0.0-20171002115256-78ecb04241c0/go.mod h1:F/7q8/HZz+TXjlsoZQQKVYvXTZaFH4QRa3y+j1p7MS0= github.com/onsi/ginkgo/v2 v2.28.0 h1:Rrf+lVLmtlBIKv6KrIGJCjyY8N36vDVcutbGJkyqjJc= github.com/onsi/ginkgo/v2 v2.28.0/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo= @@ -372,6 +397,7 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= +github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= @@ -404,6 +430,8 @@ github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/i github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk= github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/shoenig/go-m1cpu v0.1.7 h1:C76Yd0ObKR82W4vhfjZiCp0HxcSZ8Nqd84v+HZ0qyI0= +github.com/shoenig/go-m1cpu v0.1.7/go.mod h1:KkDOw6m3ZJQAPHbrzkZki4hnx+pDRR1Lo+ldA56wD5w= github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU= github.com/shoenig/test v0.6.4/go.mod h1:byHiCGXqrVaflBLAMq/srcZIHynQPQgeyvkvXnjqq0k= github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= @@ -444,8 +472,11 @@ github.com/tj/go-naturaldate v1.3.0 h1:OgJIPkR/Jk4bFMBLbxZ8w+QUxwjqSvzd9x+yXocY4 github.com/tj/go-naturaldate v1.3.0/go.mod h1:rpUbjivDKiS1BlfMGc2qUKNZ/yxgthOfmytQs8d8hKk= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/go-sysconf v0.3.16 h1:frioLaCQSsF5Cy1jgRBrzr6t502KIIwQ0MArYICU0nA= +github.com/tklauser/go-sysconf v0.3.16/go.mod h1:/qNL9xxDhc7tx3HSRsLWNnuzbVfh3e7gh/BmM179nYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/tklauser/numcpus v0.11.0/go.mod h1:z+LwcLq54uWZTX0u/bGobaV34u6V7KNlTZejzM6/3MQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75/go.mod h1:KO6IkyS8Y3j8OdNO85qEYBsRPuteD+YciPomcXdrMnk= github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY= github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4= @@ -493,6 +524,8 @@ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.6 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= go.opentelemetry.io/otel v1.41.0 h1:YlEwVsGAlCvczDILpUXpIpPSL/VPugt7zHThEMLce1c= go.opentelemetry.io/otel v1.41.0/go.mod h1:Yt4UwgEKeT05QbLwbyHXEwhnjxNO6D8L5PQP51/46dE= +go.opentelemetry.io/otel v1.42.0 h1:lSQGzTgVR3+sgJDAU/7/ZMjN9Z+vUip7leaqBKy4sho= +go.opentelemetry.io/otel v1.42.0/go.mod h1:lJNsdRMxCUIWuMlVJWzecSMuNjE7dOYyWlqOXWkdqCc= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0/go.mod h1:MJTqhM0im3mRLw1i8uGHnCvUEeS7VwRyxlLC78PA18M= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0/go.mod h1:QjUEoiGCPkvFZ/MjK6ZZfNOS6mfVEVKYE99dFhuN2LI= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.35.0 h1:T0Ec2E+3YZf5bgTNQVet8iTDW7oIk03tXHq+wkwIDnE= @@ -503,6 +536,8 @@ go.opentelemetry.io/otel/sdk v1.40.0 h1:KHW/jUzgo6wsPh9At46+h4upjtccTmuZCFAc9OJ7 go.opentelemetry.io/otel/sdk v1.40.0/go.mod h1:Ph7EFdYvxq72Y8Li9q8KebuYUr2KoeyHx0DRMKrYBUE= go.opentelemetry.io/otel/trace v1.41.0 h1:Vbk2co6bhj8L59ZJ6/xFTskY+tGAbOnCtQGVVa9TIN0= go.opentelemetry.io/otel/trace v1.41.0/go.mod h1:U1NU4ULCoxeDKc09yCWdWe+3QoyweJcISEVa1RBzOis= +go.opentelemetry.io/otel/trace v1.42.0 h1:OUCgIPt+mzOnaUTpOQcBiM/PLQ/Op7oq6g4LenLmOYY= +go.opentelemetry.io/otel/trace v1.42.0/go.mod h1:f3K9S+IFqnumBkKhRJMeaZeNk9epyhnCmQh/EysQCdc= go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= @@ -511,6 +546,8 @@ go.uber.org/ratelimit v0.3.1/go.mod h1:6euWsTB6U/Nb3X++xEUXA8ciPJvr19Q/0h1+oDcJh go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0= go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8= +go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= +go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -523,8 +560,12 @@ golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= +golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4= +golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA= golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa h1:Zt3DZoOFFYkKhDT3v7Lm9FDMEV06GpzjG2jrqW+QTE0= golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa/go.mod h1:K79w1Vqn7PoiZn+TkNpx3BUWUQksGO3JcVX6qIjytmA= +golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 h1:jiDhWWeC7jfWqR9c/uplMOqJ0sbNlNWv0UkzE0vX1MA= +golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90/go.mod h1:xE1HEv6b+1SCZ5/uscMRjUBKtIxworgEcEi+/n9NQDQ= golang.org/x/image v0.27.0 h1:C8gA4oWU/tKkdCfYT6T2u4faJu3MeNS5O8UPWlPF61w= golang.org/x/image v0.27.0/go.mod h1:xbdrClrAUway1MUTEZDq9mz/UpRwYAkFFNUslZtcB+g= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -548,6 +589,8 @@ golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo= golang.org/x/net v0.51.0/go.mod h1:aamm+2QF5ogm02fjy5Bb7CQ0WMt1/WVM7FtyaTLlA9Y= +golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0= +golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw= golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -560,6 +603,8 @@ golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= +golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -581,6 +626,8 @@ golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= +golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -592,6 +639,8 @@ golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg= golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM= +golang.org/x/term v0.41.0 h1:QCgPso/Q3RTJx2Th4bDLqML4W6iJiaXFq2/ftQF13YU= +golang.org/x/term v0.41.0/go.mod h1:3pfBgksrReYfZ5lvYM0kSO0LIkAl4Yl2bXOkKP7Ec2A= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= @@ -603,6 +652,8 @@ golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= +golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8= +golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA= golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -624,8 +675,12 @@ gomodules.xyz/jsonpatch/v2 v2.5.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuB google.golang.org/api v0.251.0/go.mod h1:Rwy0lPf/TD7+T2VhYcffCHhyyInyuxGjICxdfLqT7KI= google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171 h1:tu/dtnW1o3wfaxCOjSLn5IRX4YDcJrtlpzYkhHhGaC4= google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171/go.mod h1:M5krXqk4GhBKvB596udGL3UyjL4I1+cTbK0orROM9ng= +google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 h1:VPWxll4HlMw1Vs/qXtN7BvhZqsS9cdAittCNvVENElA= +google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9/go.mod h1:7QBABkRtR8z+TEnmXTqIqwJLlzrZKVfAUm7tY3yGv0M= google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 h1:ggcbiqK8WWh6l1dnltU4BgWGIGo+EVYxCaAPih/zQXQ= google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 h1:RmoJA1ujG+/lRGNfUnOMfhCy5EipVMyvUE+KNbPbTlw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= google.golang.org/grpc v1.75.1/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= @@ -652,18 +707,28 @@ gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= k8s.io/api v0.35.2 h1:tW7mWc2RpxW7HS4CoRXhtYHSzme1PN1UjGHJ1bdrtdw= k8s.io/api v0.35.2/go.mod h1:7AJfqGoAZcwSFhOjcGM7WV05QxMMgUaChNfLTXDRE60= +k8s.io/api v0.35.4 h1:P7nFYKl5vo9AGUp1Z+Pmd3p2tA7bX2wbFWCvDeRv988= +k8s.io/api v0.35.4/go.mod h1:yl4lqySWOgYJJf9RERXKUwE9g2y+CkuwG+xmcOK8wXU= k8s.io/apiextensions-apiserver v0.35.2 h1:iyStXHoJZsUXPh/nFAsjC29rjJWdSgUmG1XpApE29c0= k8s.io/apiextensions-apiserver v0.35.2/go.mod h1:OdyGvcO1FtMDWQ+rRh/Ei3b6X3g2+ZDHd0MSRGeS8rU= +k8s.io/apiextensions-apiserver v0.35.4 h1:HeP+Upp7ItdvnyGmub0yoix+2z5+ev4M5cE5TCgtOUU= +k8s.io/apiextensions-apiserver v0.35.4/go.mod h1:ogQlk+stIE8mnoRthSYCwlOS12fVqgWFiErMwPaXA7c= k8s.io/apimachinery v0.35.2 h1:NqsM/mmZA7sHW02JZ9RTtk3wInRgbVxL8MPfzSANAK8= k8s.io/apimachinery v0.35.2/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns= +k8s.io/apimachinery v0.35.4 h1:xtdom9RG7e+yDp71uoXoJDWEE2eOiHgeO4GdBzwWpds= +k8s.io/apimachinery v0.35.4/go.mod h1:NNi1taPOpep0jOj+oRha3mBJPqvi0hGdaV8TCqGQ+cc= k8s.io/apiserver v0.35.2/go.mod h1:CROJUAu0tfjZLyYgSeBsBan2T7LUJGh0ucWwTCSSk7g= k8s.io/client-go v0.35.2 h1:YUfPefdGJA4aljDdayAXkc98DnPkIetMl4PrKX97W9o= k8s.io/client-go v0.35.2/go.mod h1:4QqEwh4oQpeK8AaefZ0jwTFJw/9kIjdQi0jpKeYvz7g= +k8s.io/client-go v0.35.4 h1:DN6fyaGuzK64UvnKO5fOA6ymSjvfGAnCAHAR0C66kD8= +k8s.io/client-go v0.35.4/go.mod h1:2Pg9WpsS4NeOpoYTfHHfMxBG8zFMSAUi4O/qoiJC3nY= k8s.io/code-generator v0.35.2/go.mod h1:id4XLCm0yAQq5nlvyfAKibMOKnMjzlesAwGw6kM3Adc= k8s.io/component-base v0.35.2/go.mod h1:B1iBJjooe6xIJYUucAxb26RwhAjzx0gHnqO9htWIX+0= k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b/go.mod h1:CgujABENc3KuTrcsdpGmrrASjtQsWCT7R99mEV4U/fM= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= +k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc= +k8s.io/klog/v2 v2.140.0/go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0= k8s.io/kms v0.35.2/go.mod h1:VT+4ekZAdrZDMgShK37vvlyHUVhwI9t/9tvh0AyCWmQ= k8s.io/kube-aggregator v0.34.1/go.mod h1:RU8j+5ERfp0h+gIvWtxRPfsa5nK7rboDm8RST8BJfYQ= k8s.io/kube-openapi v0.0.0-20260304202019-5b3e3fdb0acf h1:btPscg4cMql0XdYK2jLsJcNEKmACJz8l+U7geC06FiM= @@ -676,6 +741,8 @@ sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.33.0/go.mod h1:Ve9uj1 sigs.k8s.io/controller-runtime v0.22.3/go.mod h1:+QX1XUpTXN4mLoblf4tqr5CQcyHPAki2HLXqQMY6vh8= sigs.k8s.io/gateway-api v1.5.0 h1:duoo14Ky/fJXpjpmyMISE2RTBGnfCg8zICfTYLTnBJA= sigs.k8s.io/gateway-api v1.5.0/go.mod h1:GvCETiaMAlLym5CovLxGjS0NysqFk3+Yuq3/rh6QL2o= +sigs.k8s.io/gateway-api v1.5.1 h1:RqVRIlkhLhUO8wOHKTLnTJA6o/1un4po4/6M1nRzdd0= +sigs.k8s.io/gateway-api v1.5.1/go.mod h1:GvCETiaMAlLym5CovLxGjS0NysqFk3+Yuq3/rh6QL2o= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= diff --git a/go.mod b/go.mod index abf2d3f7..4c5b2795 100644 --- a/go.mod +++ b/go.mod @@ -12,19 +12,19 @@ require ( github.com/charmbracelet/x/ansi v0.11.6 github.com/creack/pty v1.1.24 github.com/fatih/color v1.18.0 - github.com/flanksource/commons v1.51.0 - github.com/flanksource/gomplate/v3 v3.24.77 + github.com/flanksource/commons v1.51.3 + github.com/flanksource/gomplate/v3 v3.24.78 github.com/go-xmlfmt/xmlfmt v1.1.3 github.com/goccy/go-yaml v1.19.2 github.com/golang-jwt/jwt/v5 v5.3.0 github.com/golangci/plugin-module-register v0.1.2 github.com/google/cel-go v0.27.0 github.com/google/uuid v1.6.0 - github.com/itchyny/gojq v0.12.18 + github.com/itchyny/gojq v0.12.19 github.com/labstack/echo/v4 v4.13.4 - github.com/mattn/go-sqlite3 v1.14.30 + github.com/mattn/go-sqlite3 v1.14.38 github.com/muesli/termenv v0.16.0 - github.com/olekukonko/tablewriter v1.1.3 + github.com/olekukonko/tablewriter v1.1.4 github.com/onsi/ginkgo/v2 v2.28.0 github.com/onsi/gomega v1.39.1 github.com/playwright-community/playwright-go v0.5700.1 @@ -37,13 +37,13 @@ require ( github.com/timberio/go-datemath v0.1.0 github.com/tj/go-naturaldate v1.3.0 github.com/xuri/excelize/v2 v2.10.1 - golang.org/x/crypto v0.48.0 - golang.org/x/sync v0.19.0 - golang.org/x/sys v0.41.0 - golang.org/x/term v0.40.0 - golang.org/x/text v0.34.0 + golang.org/x/crypto v0.49.0 + golang.org/x/sync v0.20.0 + golang.org/x/sys v0.42.0 + golang.org/x/term v0.41.0 + golang.org/x/text v0.35.0 golang.org/x/time v0.14.0 - golang.org/x/tools v0.42.0 + golang.org/x/tools v0.43.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -55,29 +55,32 @@ require ( github.com/antchfx/xpath v1.3.6 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go-v2 v1.41.1 // indirect - github.com/aws/aws-sdk-go-v2/config v1.32.9 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.19.9 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.17 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.17 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.17 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.17 // indirect - github.com/aws/aws-sdk-go-v2/service/signin v1.0.5 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.30.10 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.14 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.41.6 // indirect - github.com/aws/smithy-go v1.24.0 // indirect + github.com/aws/aws-sdk-go-v2 v1.41.6 // indirect + github.com/aws/aws-sdk-go-v2/config v1.32.16 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.19.15 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.22 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.22 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.22 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.23 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.22 // indirect + github.com/aws/aws-sdk-go-v2/service/signin v1.0.10 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.30.16 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.20 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.42.0 // indirect + github.com/aws/smithy-go v1.25.0 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/aymanbagabas/go-udiff v0.4.1 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/catppuccin/go v0.3.0 // indirect - github.com/cert-manager/cert-manager v1.19.4 // indirect + github.com/cert-manager/cert-manager v1.20.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/charmbracelet/colorprofile v0.4.2 // indirect + github.com/charmbracelet/colorprofile v0.4.3 // indirect github.com/charmbracelet/x/cellbuf v0.0.15 // indirect + github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f // indirect github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 // indirect github.com/charmbracelet/x/term v0.2.2 // indirect + github.com/charmbracelet/x/xpty v0.1.3 // indirect github.com/clipperhouse/displaywidth v0.11.0 // indirect github.com/clipperhouse/uax29/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect @@ -87,20 +90,20 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/emirpasic/gods/v2 v2.0.0-alpha // indirect github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect - github.com/flanksource/is-healthy v1.0.86 // indirect + github.com/flanksource/is-healthy v1.0.87 // indirect github.com/flanksource/kubectl-neat v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/fxamacker/cbor/v2 v2.9.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-jose/go-jose/v3 v3.0.4 // indirect + github.com/go-jose/go-jose/v3 v3.0.5 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-stack/stack v1.8.1 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/gobwas/glob v0.2.3 // indirect - github.com/goccy/go-json v0.10.5 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/goccy/go-json v0.10.6 // indirect + github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 // indirect github.com/gosimple/slug v1.15.0 // indirect @@ -108,7 +111,7 @@ require ( github.com/hairyhenderson/toml v0.4.2-0.20210923231440-40456b8e66cf // indirect github.com/hairyhenderson/yaml v0.0.0-20220618171115-2d35fca545ce // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/itchyny/timefmt-go v0.1.7 // indirect + github.com/itchyny/timefmt-go v0.1.8 // indirect github.com/jeremywohl/flatten v1.0.1 // indirect github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24 // indirect github.com/json-iterator/go v1.1.12 // indirect @@ -118,11 +121,11 @@ require ( github.com/lmittmann/tint v1.1.3 // indirect github.com/lrita/cmap v0.0.0-20231108122212-cb084a67f554 // indirect github.com/lucasb-eyer/go-colorful v1.3.0 // indirect - github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect + github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.20 // indirect + github.com/mattn/go-runewidth v0.0.21 // indirect github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect @@ -130,7 +133,7 @@ require ( github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/ohler55/ojg v1.28.0 // indirect + github.com/ohler55/ojg v1.28.1 // indirect github.com/oklog/ulid/v2 v2.1.1 // indirect github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect github.com/olekukonko/errors v1.2.0 // indirect @@ -138,7 +141,7 @@ require ( github.com/opencontainers/go-digest v1.0.0 // indirect github.com/patrickmn/go-cache v2.1.0+incompatible // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect + github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/prometheus/client_golang v1.23.2 // indirect github.com/prometheus/client_model v0.6.2 // indirect github.com/prometheus/common v0.67.5 // indirect @@ -150,15 +153,15 @@ require ( github.com/robfig/cron/v3 v3.0.1 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/samber/oops v1.21.0 // indirect - github.com/shoenig/go-m1cpu v0.1.6 // indirect + github.com/shoenig/go-m1cpu v0.1.7 // indirect github.com/sirupsen/logrus v1.9.4 // indirect github.com/tidwall/gjson v1.18.0 // indirect github.com/tidwall/match v1.2.0 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/tidwall/sjson v1.2.5 // indirect github.com/tiendc/go-deepcopy v1.7.2 // indirect - github.com/tklauser/go-sysconf v0.3.12 // indirect - github.com/tklauser/numcpus v0.6.1 // indirect + github.com/tklauser/go-sysconf v0.3.16 // indirect + github.com/tklauser/numcpus v0.11.0 // indirect github.com/ugorji/go/codec v1.3.1 // indirect github.com/vadimi/go-http-ntlm v1.0.3 // indirect github.com/vadimi/go-http-ntlm/v2 v2.5.0 // indirect @@ -172,32 +175,32 @@ require ( github.com/yuin/gopher-lua v1.1.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect - go.opentelemetry.io/otel v1.41.0 // indirect - go.opentelemetry.io/otel/metric v1.41.0 // indirect - go.opentelemetry.io/otel/trace v1.41.0 // indirect - go.yaml.in/yaml/v2 v2.4.3 // indirect + go.opentelemetry.io/otel v1.42.0 // indirect + go.opentelemetry.io/otel/metric v1.42.0 // indirect + go.opentelemetry.io/otel/trace v1.42.0 // indirect + go.yaml.in/yaml/v2 v2.4.4 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect - golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa // indirect + golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect golang.org/x/image v0.27.0 // indirect - golang.org/x/mod v0.33.0 // indirect - golang.org/x/net v0.51.0 // indirect - golang.org/x/oauth2 v0.34.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect + golang.org/x/mod v0.34.0 // indirect + golang.org/x/net v0.52.0 // indirect + golang.org/x/oauth2 v0.36.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect google.golang.org/protobuf v1.36.11 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/sourcemap.v1 v1.0.5 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gotest.tools/v3 v3.5.2 // indirect - k8s.io/api v0.35.2 // indirect - k8s.io/apiextensions-apiserver v0.35.2 // indirect - k8s.io/apimachinery v0.35.2 // indirect - k8s.io/client-go v0.35.2 // indirect - k8s.io/klog/v2 v2.130.1 // indirect + k8s.io/api v0.35.4 // indirect + k8s.io/apiextensions-apiserver v0.35.4 // indirect + k8s.io/apimachinery v0.35.4 // indirect + k8s.io/client-go v0.35.4 // indirect + k8s.io/klog/v2 v2.140.0 // indirect k8s.io/kube-openapi v0.0.0-20260304202019-5b3e3fdb0acf // indirect k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 // indirect layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf // indirect - sigs.k8s.io/gateway-api v1.5.0 // indirect + sigs.k8s.io/gateway-api v1.5.1 // indirect sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect sigs.k8s.io/randfill v1.0.0 // indirect sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect diff --git a/go.sum b/go.sum index c185b40a..7df33843 100644 --- a/go.sum +++ b/go.sum @@ -25,38 +25,38 @@ github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYW github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= -github.com/aws/aws-sdk-go-v2 v1.41.1 h1:ABlyEARCDLN034NhxlRUSZr4l71mh+T5KAeGh6cerhU= -github.com/aws/aws-sdk-go-v2 v1.41.1/go.mod h1:MayyLB8y+buD9hZqkCW3kX1AKq07Y5pXxtgB+rRFhz0= -github.com/aws/aws-sdk-go-v2/config v1.32.9 h1:ktda/mtAydeObvJXlHzyGpK1xcsLaP16zfUPDGoW90A= -github.com/aws/aws-sdk-go-v2/config v1.32.9/go.mod h1:U+fCQ+9QKsLW786BCfEjYRj34VVTbPdsLP3CHSYXMOI= -github.com/aws/aws-sdk-go-v2/credentials v1.19.9 h1:sWvTKsyrMlJGEuj/WgrwilpoJ6Xa1+KhIpGdzw7mMU8= -github.com/aws/aws-sdk-go-v2/credentials v1.19.9/go.mod h1:+J44MBhmfVY/lETFiKI+klz0Vym2aCmIjqgClMmW82w= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.17 h1:I0GyV8wiYrP8XpA70g1HBcQO1JlQxCMTW9npl5UbDHY= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.17/go.mod h1:tyw7BOl5bBe/oqvoIeECFJjMdzXoa/dfVz3QQ5lgHGA= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.17 h1:xOLELNKGp2vsiteLsvLPwxC+mYmO6OZ8PYgiuPJzF8U= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.17/go.mod h1:5M5CI3D12dNOtH3/mk6minaRwI2/37ifCURZISxA/IQ= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.17 h1:WWLqlh79iO48yLkj1v3ISRNiv+3KdQoZ6JWyfcsyQik= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.17/go.mod h1:EhG22vHRrvF8oXSTYStZhJc1aUgKtnJe+aOiFEV90cM= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 h1:WKuaxf++XKWlHWu9ECbMlha8WOEGm0OUEZqm4K/Gcfk= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4/go.mod h1:ZWy7j6v1vWGmPReu0iSGvRiise4YI5SkR3OHKTZ6Wuc= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4 h1:0ryTNEdJbzUCEWkVXEXoqlXV72J5keC1GvILMOuD00E= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4/go.mod h1:HQ4qwNZh32C3CBeO6iJLQlgtMzqeG17ziAA/3KDJFow= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.17 h1:RuNSMoozM8oXlgLG/n6WLaFGoea7/CddrCfIiSA+xdY= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.17/go.mod h1:F2xxQ9TZz5gDWsclCtPQscGpP0VUOc8RqgFM3vDENmU= -github.com/aws/aws-sdk-go-v2/service/signin v1.0.5 h1:VrhDvQib/i0lxvr3zqlUwLwJP4fpmpyD9wYG1vfSu+Y= -github.com/aws/aws-sdk-go-v2/service/signin v1.0.5/go.mod h1:k029+U8SY30/3/ras4G/Fnv/b88N4mAfliNn08Dem4M= -github.com/aws/aws-sdk-go-v2/service/sso v1.30.10 h1:+VTRawC4iVY58pS/lzpo0lnoa/SYNGF4/B/3/U5ro8Y= -github.com/aws/aws-sdk-go-v2/service/sso v1.30.10/go.mod h1:yifAsgBxgJWn3ggx70A3urX2AN49Y5sJTD1UQFlfqBw= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.14 h1:0jbJeuEHlwKJ9PfXtpSFc4MF+WIWORdhN1n30ITZGFM= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.14/go.mod h1:sTGThjphYE4Ohw8vJiRStAcu3rbjtXRsdNB0TvZ5wwo= -github.com/aws/aws-sdk-go-v2/service/sts v1.41.6 h1:5fFjR/ToSOzB2OQ/XqWpZBmNvmP/pJ1jOWYlFDJTjRQ= -github.com/aws/aws-sdk-go-v2/service/sts v1.41.6/go.mod h1:qgFDZQSD/Kys7nJnVqYlWKnh0SSdMjAi0uSwON4wgYQ= -github.com/aws/smithy-go v1.24.0 h1:LpilSUItNPFr1eY85RYgTIg5eIEPtvFbskaFcmmIUnk= -github.com/aws/smithy-go v1.24.0/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0= +github.com/aws/aws-sdk-go-v2 v1.41.6 h1:1AX0AthnBQzMx1vbmir3Y4WsnJgiydmnJjiLu+LvXOg= +github.com/aws/aws-sdk-go-v2 v1.41.6/go.mod h1:dy0UzBIfwSeot4grGvY1AqFWN5zgziMmWGzysDnHFcQ= +github.com/aws/aws-sdk-go-v2/config v1.32.16 h1:Q0iQ7quUgJP0F/SCRTieScnaMdXr9h/2+wze1u3cNeM= +github.com/aws/aws-sdk-go-v2/config v1.32.16/go.mod h1:duCCnJEFqpt2RC6no1iK6q+8HpwOAkiUua0pY507dQc= +github.com/aws/aws-sdk-go-v2/credentials v1.19.15 h1:fyvgWTszojq8hEnMi8PPBTvZdTtEVmAVyo+NFLHBhH4= +github.com/aws/aws-sdk-go-v2/credentials v1.19.15/go.mod h1:gJiYyMOjNg8OEdRWOf3CrFQxM2a98qmrtjx1zuiQfB8= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.22 h1:IOGsJ1xVWhsi+ZO7/NW8OuZZBtMJLZbk4P5HDjJO0jQ= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.22/go.mod h1:b+hYdbU+jGKfXE8kKM6g1+h+L/Go3vMvzlxBsiuGsxg= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.22 h1:GmLa5Kw1ESqtFpXsx5MmC84QWa/ZrLZvlJGa2y+4kcQ= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.22/go.mod h1:6sW9iWm9DK9YRpRGga/qzrzNLgKpT2cIxb7Vo2eNOp0= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.22 h1:dY4kWZiSaXIzxnKlj17nHnBcXXBfac6UlsAx2qL6XrU= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.22/go.mod h1:KIpEUx0JuRZLO7U6cbV204cWAEco2iC3l061IxlwLtI= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.23 h1:FPXsW9+gMuIeKmz7j6ENWcWtBGTe1kH8r9thNt5Uxx4= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.23/go.mod h1:7J8iGMdRKk6lw2C+cMIphgAnT8uTwBwNOsGkyOCm80U= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.8 h1:HtOTYcbVcGABLOVuPYaIihj6IlkqubBwFj10K5fxRek= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.8/go.mod h1:VsK9abqQeGlzPgUr+isNWzPlK2vKe9INMLWnY65f5Xs= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.22 h1:PUmZeJU6Y1Lbvt9WFuJ0ugUK2xn6hIWUBBbKuOWF30s= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.22/go.mod h1:nO6egFBoAaoXze24a2C0NjQCvdpk8OueRoYimvEB9jo= +github.com/aws/aws-sdk-go-v2/service/signin v1.0.10 h1:a1Fq/KXn75wSzoJaPQTgZO0wHGqE9mjFnylnqEPTchA= +github.com/aws/aws-sdk-go-v2/service/signin v1.0.10/go.mod h1:p6+MXNxW7IA6dMgHfTAzljuwSKD0NCm/4lbS4t6+7vI= +github.com/aws/aws-sdk-go-v2/service/sso v1.30.16 h1:x6bKbmDhsgSZwv6q19wY/u3rLk/3FGjJWyqKcIRufpE= +github.com/aws/aws-sdk-go-v2/service/sso v1.30.16/go.mod h1:CudnEVKRtLn0+3uMV0yEXZ+YZOKnAtUJ5DmDhilVnIw= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.20 h1:oK/njaL8GtyEihkWMD4k3VgHCT64RQKkZwh0DG5j8ak= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.20/go.mod h1:JHs8/y1f3zY7U5WcuzoJ/yAYGYtNIVPKLIbp61euvmg= +github.com/aws/aws-sdk-go-v2/service/sts v1.42.0 h1:ks8KBcZPh3PYISr5dAiXCM5/Thcuxk8l+PG4+A0exds= +github.com/aws/aws-sdk-go-v2/service/sts v1.42.0/go.mod h1:pFw33T0WLvXU3rw1WBkpMlkgIn54eCB5FYLhjDc9Foo= +github.com/aws/smithy-go v1.25.0 h1:Sz/XJ64rwuiKtB6j98nDIPyYrV1nVNJ4YU74gttcl5U= +github.com/aws/smithy-go v1.25.0/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= -github.com/aymanbagabas/go-udiff v0.3.1 h1:LV+qyBQ2pqe0u42ZsUEtPiCaUoqgA9gYRDs3vj1nolY= -github.com/aymanbagabas/go-udiff v0.3.1/go.mod h1:G0fsKmG+P6ylD0r6N/KgQD/nWzgfnl8ZBcNLgcbrw8E= +github.com/aymanbagabas/go-udiff v0.4.1 h1:OEIrQ8maEeDBXQDoGCbbTTXYJMYRCRO1fnodZ12Gv5o= +github.com/aymanbagabas/go-udiff v0.4.1/go.mod h1:0L9PGwj20lrtmEMeyw4WKJ/TMyDtvAoK9bf2u/mNo3w= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bmatcuk/doublestar/v4 v4.8.1 h1:54Bopc5c2cAvhLRAzqOGCYHYyhcDHsFF4wWIR5wKP38= @@ -65,16 +65,16 @@ github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= github.com/catppuccin/go v0.3.0 h1:d+0/YicIq+hSTo5oPuRi5kOpqkVA5tAsU6dNhvRu+aY= github.com/catppuccin/go v0.3.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc= -github.com/cert-manager/cert-manager v1.19.4 h1:7lOkSYj+nJNjgGFfAznQzPpOfWX+1Kgz6xUXwTa/K5k= -github.com/cert-manager/cert-manager v1.19.4/go.mod h1:9uBnn3IK9NxjjuXmQDYhwOwFUU5BtGVB1g/voPvvcVw= +github.com/cert-manager/cert-manager v1.20.0 h1:czZamsFJ1YdKPhpv+SopJZN9t3W68vQBnFYUevSHGqY= +github.com/cert-manager/cert-manager v1.20.0/go.mod h1:3oparI7R5JyJMNXntYod9p6DucIZ84st7y/9kL6cbBE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 h1:JFgG/xnwFfbezlUnFMJy0nusZvytYysV4SCS2cYbvws= github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7/go.mod h1:ISC1gtLcVilLOf23wvTfoQuYbW2q0JevFxPfUzZ9Ybw= github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw= github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4= -github.com/charmbracelet/colorprofile v0.4.2 h1:BdSNuMjRbotnxHSfxy+PCSa4xAmz7szw70ktAtWRYrY= -github.com/charmbracelet/colorprofile v0.4.2/go.mod h1:0rTi81QpwDElInthtrQ6Ni7cG0sDtwAd4C4le060fT8= +github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q= +github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q= github.com/charmbracelet/huh v1.0.0 h1:wOnedH8G4qzJbmhftTqrpppyqHakl/zbbNdXIWJyIxw= github.com/charmbracelet/huh v1.0.0/go.mod h1:5YVc+SlZ1IhQALxRPpkGwwEKftN/+OlJlnJYlDRFqN4= github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= @@ -83,20 +83,20 @@ github.com/charmbracelet/x/ansi v0.11.6 h1:GhV21SiDz/45W9AnV2R61xZMRri5NlLnl6CVF github.com/charmbracelet/x/ansi v0.11.6/go.mod h1:2JNYLgQUsyqaiLovhU2Rv/pb8r6ydXKS3NIttu3VGZQ= github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI= github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q= -github.com/charmbracelet/x/conpty v0.1.0 h1:4zc8KaIcbiL4mghEON8D72agYtSeIgq8FSThSPQIb+U= -github.com/charmbracelet/x/conpty v0.1.0/go.mod h1:rMFsDJoDwVmiYM10aD4bH2XiRgwI7NYJtQgl5yskjEQ= +github.com/charmbracelet/x/conpty v0.1.1 h1:s1bUxjoi7EpqiXysVtC+a8RrvPPNcNvAjfi4jxsAuEs= +github.com/charmbracelet/x/conpty v0.1.1/go.mod h1:OmtR77VODEFbiTzGE9G1XiRJAga6011PIm4u5fTNZpk= github.com/charmbracelet/x/errors v0.0.0-20240508181413-e8d8b6e2de86 h1:JSt3B+U9iqk37QUU2Rvb6DSBYRLtWqFqfxf8l5hOZUA= github.com/charmbracelet/x/errors v0.0.0-20240508181413-e8d8b6e2de86/go.mod h1:2P0UgXMEa6TsToMSuFqKFQR+fZTO9CNGUNokkPatT/0= -github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91 h1:payRxjMjKgx2PaCWLZ4p3ro9y97+TVLZNaRZgJwSVDQ= -github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U= +github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f h1:pk6gmGpCE7F3FcjaOEKYriCvpmIN4+6OS/RD0vm4uIA= +github.com/charmbracelet/x/exp/golden v0.0.0-20250806222409-83e3a29d542f/go.mod h1:IfZAMTHB6XkZSeXUqriemErjAWCCzT0LwjKFYCZyw0I= github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 h1:qko3AQ4gK1MTS/de7F5hPGx6/k1u0w4TeYmBFwzYVP4= github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ= github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY= github.com/charmbracelet/x/termios v0.1.1/go.mod h1:rB7fnv1TgOPOyyKRJ9o+AsTU/vK5WHJ2ivHeut/Pcwo= -github.com/charmbracelet/x/xpty v0.1.2 h1:Pqmu4TEJ8KeA9uSkISKMU3f+C1F6OGBn8ABuGlqCbtI= -github.com/charmbracelet/x/xpty v0.1.2/go.mod h1:XK2Z0id5rtLWcpeNiMYBccNNBrP2IJnzHI0Lq13Xzq4= +github.com/charmbracelet/x/xpty v0.1.3 h1:eGSitii4suhzrISYH50ZfufV3v085BXQwIytcOdFSsw= +github.com/charmbracelet/x/xpty v0.1.3/go.mod h1:poPYpWuLDBFCKmKLDnhBp51ATa0ooD8FhypRwEFtH3Y= github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= @@ -123,12 +123,12 @@ github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6 github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= -github.com/flanksource/commons v1.51.0 h1:Q7v8WTl1e/TsSPT00+QP9wdVwaJZhMsUOLBYFNPcZh4= -github.com/flanksource/commons v1.51.0/go.mod h1:IAZ94jQnUMMRShmbkg4+sPHEdyQfVc7a1tl2BnL1VF8= -github.com/flanksource/gomplate/v3 v3.24.77 h1:StGjXRxeADULhxA9rXbPzAPk+C/952gNeU+LUO7qRXk= -github.com/flanksource/gomplate/v3 v3.24.77/go.mod h1:IioRhY9IdwdlPI/xdZOiLHGsFJqW4Sp6yXmrqCFuh+k= -github.com/flanksource/is-healthy v1.0.86 h1:N4oxqdW8/YN7+EmEHk4rStpYXzuGADiMAXP2T75bynw= -github.com/flanksource/is-healthy v1.0.86/go.mod h1:xoEeeCamUiW8fGWGyRaGL9NU4xQzou+sgDC5raguDew= +github.com/flanksource/commons v1.51.3 h1:sgQZ2s0XJTub4qmIlzRyH+eYXJP6UXmreCataP9mE7E= +github.com/flanksource/commons v1.51.3/go.mod h1:BxXJzAsRxsw0la7Y/ShEABa8ZbtGIdRi7PCRjiHDCJE= +github.com/flanksource/gomplate/v3 v3.24.78 h1:zAxVx4VOUT6VDgBp5nDY4zOVbm4Y1O7+eTs0OqMrb1k= +github.com/flanksource/gomplate/v3 v3.24.78/go.mod h1:RzIg+YwNQI0eUV61LtqmhNN2Qw8ebm1cGa6IhNQmkWE= +github.com/flanksource/is-healthy v1.0.87 h1:wSK9wI9tu//gdKO9JxyZe8ZQ5H7MCpwG17KdbWaiMeM= +github.com/flanksource/is-healthy v1.0.87/go.mod h1:xoEeeCamUiW8fGWGyRaGL9NU4xQzou+sgDC5raguDew= github.com/flanksource/kubectl-neat v1.0.4 h1:t5/9CqgE84oEtB0KitgJ2+WIeLfD+RhXSxYrqb4X8yI= github.com/flanksource/kubectl-neat v1.0.4/go.mod h1:Un/Voyh3cmiZNKQrW/TkAl28nAA7vwnwDGVjRErKjOw= github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= @@ -143,8 +143,8 @@ github.com/gkampitakis/go-diff v1.3.2 h1:Qyn0J9XJSDTgnsgHRdz9Zp24RaJeKMUHg2+PDZZ github.com/gkampitakis/go-diff v1.3.2/go.mod h1:LLgOrpqleQe26cte8s36HTWcTmMEur6OPYerdAAS9tk= github.com/gkampitakis/go-snaps v0.5.15 h1:amyJrvM1D33cPHwVrjo9jQxX8g/7E2wYdZ+01KS3zGE= github.com/gkampitakis/go-snaps v0.5.15/go.mod h1:HNpx/9GoKisdhw9AFOBT1N7DBs9DiHo/hGheFGBZ+mc= -github.com/go-jose/go-jose/v3 v3.0.4 h1:Wp5HA7bLQcKnf6YYao/4kpRpVMp/yf6+pJKV8WFSaNY= -github.com/go-jose/go-jose/v3 v3.0.4/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= +github.com/go-jose/go-jose/v3 v3.0.5 h1:BLLJWbC4nMZOfuPVxoZIxeYsn6Nl2r1fITaJ78UQlVQ= +github.com/go-jose/go-jose/v3 v3.0.5/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -160,19 +160,19 @@ github.com/go-xmlfmt/xmlfmt v1.1.3 h1:t8Ey3Uy7jDSEisW2K3somuMKIpzktkWptA0iFCnRUW github.com/go-xmlfmt/xmlfmt v1.1.3/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= -github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4= -github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= +github.com/goccy/go-json v0.10.6 h1:p8HrPJzOakx/mn/bQtjgNjdTcN+/S6FcG2CTtQOrHVU= +github.com/goccy/go-json v0.10.6/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM= github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo= github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ= +github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw= github.com/golangci/plugin-module-register v0.1.2 h1:e5WM6PO6NIAEcij3B053CohVp3HIYbzSuP53UAYgOpg= github.com/golangci/plugin-module-register v0.1.2/go.mod h1:1+QGTsKBvAIvPvoY/os+G5eoqxWn70HYDm2uvUyGuVw= github.com/google/cel-go v0.27.0 h1:e7ih85+4qVrBuqQWTW4FKSqZYokVuc3HnhH5keboFTo= github.com/google/cel-go v0.27.0/go.mod h1:tTJ11FWqnhw5KKpnWpvW9CJC3Y9GK4EIS0WXnBbebzw= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= @@ -194,10 +194,10 @@ github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUq github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/itchyny/gojq v0.12.18 h1:gFGHyt/MLbG9n6dqnvlliiya2TaMMh6FFaR2b1H6Drc= -github.com/itchyny/gojq v0.12.18/go.mod h1:4hPoZ/3lN9fDL1D+aK7DY1f39XZpY9+1Xpjz8atrEkg= -github.com/itchyny/timefmt-go v0.1.7 h1:xyftit9Tbw+Dc/huSSPJaEmX1TVL8lw5vxjJLK4GMMA= -github.com/itchyny/timefmt-go v0.1.7/go.mod h1:5E46Q+zj7vbTgWY8o5YkMeYb4I6GeWLFnetPy5oBrAI= +github.com/itchyny/gojq v0.12.19 h1:ttXA0XCLEMoaLOz5lSeFOZ6u6Q3QxmG46vfgI4O0DEs= +github.com/itchyny/gojq v0.12.19/go.mod h1:5galtVPDywX8SPSOrqjGxkBeDhSxEW1gSxoy7tn1iZY= +github.com/itchyny/timefmt-go v0.1.8 h1:1YEo1JvfXeAHKdjelbYr/uCuhkybaHCeTkH8Bo791OI= +github.com/itchyny/timefmt-go v0.1.8/go.mod h1:5E46Q+zj7vbTgWY8o5YkMeYb4I6GeWLFnetPy5oBrAI= github.com/jeremywohl/flatten v1.0.1 h1:LrsxmB3hfwJuE+ptGOijix1PIfOoKLJ3Uee/mzbgtrs= github.com/jeremywohl/flatten v1.0.1/go.mod h1:4AmD/VxjWcI5SRB0n6szE2A6s2fsNHDLO0nAlMHgfLQ= github.com/jmespath/go-jmespath v0.4.1-0.20220621161143-b0104c826a24 h1:liMMTbpW34dhU4az1GN0pTPADwNmvoRSeoZ6PItiqnY= @@ -223,8 +223,8 @@ github.com/lrita/cmap v0.0.0-20231108122212-cb084a67f554 h1:a0+bIffIh/HdvvgtPQLR github.com/lrita/cmap v0.0.0-20231108122212-cb084a67f554/go.mod h1:Cn9TaoncDT8Tt/aJ7CIZy+t48MaZWDEwhu1bBXwrzLI= github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag= github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= +github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3 h1:PwQumkgq4/acIiZhtifTV5OUqqiP82UAl0h87xj/l9k= +github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3/go.mod h1:autxFIvghDt3jPTLoqZ9OZ7s9qTGNAWmYCjVFWPX/zg= github.com/maruel/natural v1.1.1 h1:Hja7XhhmvEFhcByqDoHz9QZbkWey+COd9xWfCfn1ioo= github.com/maruel/natural v1.1.1/go.mod h1:v+Rfd79xlw1AgVBjbO0BEQmptqb5HvL/k9GRHB7ZKEg= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= @@ -233,10 +233,10 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= -github.com/mattn/go-runewidth v0.0.20 h1:WcT52H91ZUAwy8+HUkdM3THM6gXqXuLJi9O3rjcQQaQ= -github.com/mattn/go-runewidth v0.0.20/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= -github.com/mattn/go-sqlite3 v1.14.30 h1:bVreufq3EAIG1Quvws73du3/QgdeZ3myglJlrzSYYCY= -github.com/mattn/go-sqlite3 v1.14.30/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= +github.com/mattn/go-runewidth v0.0.21 h1:jJKAZiQH+2mIinzCJIaIG9Be1+0NR+5sz/lYEEjdM8w= +github.com/mattn/go-runewidth v0.0.21/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= +github.com/mattn/go-sqlite3 v1.14.38 h1:tDUzL85kMvOrvpCt8P64SbGgVFtJB11GPi2AdmITgb4= +github.com/mattn/go-sqlite3 v1.14.38/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mfridman/tparse v0.18.0 h1:wh6dzOKaIwkUGyKgOntDW4liXSo37qg5AXbIhkMV3vE= github.com/mfridman/tparse v0.18.0/go.mod h1:gEvqZTuCgEhPbYk/2lS3Kcxg1GmTxxU7kTC8DvP0i/A= github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= @@ -257,8 +257,8 @@ github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/ohler55/ojg v1.28.0 h1:8xClBgMIRRJGDUC9xNe7NprP4kD2C3mQMeon3wY4KXA= -github.com/ohler55/ojg v1.28.0/go.mod h1:/Y5dGWkekv9ocnUixuETqiL58f+5pAsUfg5P8e7Pa2o= +github.com/ohler55/ojg v1.28.1 h1:Xy93DelhLSZNeWv8GPKtP6qMqkUlZlAxBP/AQcC5RfY= +github.com/ohler55/ojg v1.28.1/go.mod h1:/Y5dGWkekv9ocnUixuETqiL58f+5pAsUfg5P8e7Pa2o= github.com/oklog/ulid/v2 v2.1.1 h1:suPZ4ARWLOJLegGFiZZ1dFAkqzhMjL3J1TzI+5wHz8s= github.com/oklog/ulid/v2 v2.1.1/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 h1:zrbMGy9YXpIeTnGj4EljqMiZsIcE09mmF8XsD5AYOJc= @@ -267,8 +267,8 @@ github.com/olekukonko/errors v1.2.0 h1:10Zcn4GeV59t/EGqJc8fUjtFT/FuUh5bTMzZ1XwmC github.com/olekukonko/errors v1.2.0/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y= github.com/olekukonko/ll v0.1.7 h1:WyK1YZwOTUKHEXZz3VydBDT5t3zDqa9yI8iJg5PHon4= github.com/olekukonko/ll v0.1.7/go.mod h1:RPRC6UcscfFZgjo1nulkfMH5IM0QAYim0LfnMvUuozw= -github.com/olekukonko/tablewriter v1.1.3 h1:VSHhghXxrP0JHl+0NnKid7WoEmd9/urKRJLysb70nnA= -github.com/olekukonko/tablewriter v1.1.3/go.mod h1:9VU0knjhmMkXjnMKrZ3+L2JhhtsQ/L38BbL3CRNE8tM= +github.com/olekukonko/tablewriter v1.1.4 h1:ORUMI3dXbMnRlRggJX3+q7OzQFDdvgbN9nVWj1drm6I= +github.com/olekukonko/tablewriter v1.1.4/go.mod h1:+kedxuyTtgoZLwif3P1Em4hARJs+mVnzKxmsCL/C5RY= github.com/onsi/ginkgo/v2 v2.28.0 h1:Rrf+lVLmtlBIKv6KrIGJCjyY8N36vDVcutbGJkyqjJc= github.com/onsi/ginkgo/v2 v2.28.0/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo= github.com/onsi/gomega v1.39.1 h1:1IJLAad4zjPn2PsnhH70V4DKRFlrCzGBNrNaru+Vf28= @@ -286,8 +286,8 @@ github.com/playwright-community/playwright-go v0.5700.1/go.mod h1:MlSn1dZrx8rszb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= +github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU= +github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= @@ -316,10 +316,10 @@ github.com/samber/oops v1.21.0 h1:18atcO4oEigNFuGXqr3NZWZ6P0XOSEXyBSAMXdQRxTc= github.com/samber/oops v1.21.0/go.mod h1:Hsm/sKPxtCfPh0w/cE3xVoRfSiE1joDRiStPAsmG9bo= github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI= github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk= -github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= -github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= -github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU= -github.com/shoenig/test v0.6.4/go.mod h1:byHiCGXqrVaflBLAMq/srcZIHynQPQgeyvkvXnjqq0k= +github.com/shoenig/go-m1cpu v0.1.7 h1:C76Yd0ObKR82W4vhfjZiCp0HxcSZ8Nqd84v+HZ0qyI0= +github.com/shoenig/go-m1cpu v0.1.7/go.mod h1:KkDOw6m3ZJQAPHbrzkZki4hnx+pDRR1Lo+ldA56wD5w= +github.com/shoenig/test v1.7.0 h1:eWcHtTXa6QLnBvm0jgEabMRN/uJ4DMV3M8xUGgRkZmk= +github.com/shoenig/test v1.7.0/go.mod h1:UxJ6u/x2v/TNs/LoLxBNJRV9DiwBBKYxXSyczsBHFoI= github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= @@ -352,10 +352,10 @@ github.com/tj/assert v0.0.0-20190920132354-ee03d75cd160 h1:NSWpaDaurcAJY7PkL8Xt0 github.com/tj/assert v0.0.0-20190920132354-ee03d75cd160/go.mod h1:mZ9/Rh9oLWpLLDRpvE+3b7gP/C2YyLFYxNmcLnPTMe0= github.com/tj/go-naturaldate v1.3.0 h1:OgJIPkR/Jk4bFMBLbxZ8w+QUxwjqSvzd9x+yXocY4RI= github.com/tj/go-naturaldate v1.3.0/go.mod h1:rpUbjivDKiS1BlfMGc2qUKNZ/yxgthOfmytQs8d8hKk= -github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= -github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= -github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= -github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/tklauser/go-sysconf v0.3.16 h1:frioLaCQSsF5Cy1jgRBrzr6t502KIIwQ0MArYICU0nA= +github.com/tklauser/go-sysconf v0.3.16/go.mod h1:/qNL9xxDhc7tx3HSRsLWNnuzbVfh3e7gh/BmM179nYI= +github.com/tklauser/numcpus v0.11.0 h1:nSTwhKH5e1dMNsCdVBukSZrURJRoHbSEQjdEbY+9RXw= +github.com/tklauser/numcpus v0.11.0/go.mod h1:z+LwcLq54uWZTX0u/bGobaV34u6V7KNlTZejzM6/3MQ= github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY= github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4= github.com/vadimi/go-http-ntlm v1.0.3 h1:o6n2vAtP1MlLT73jIXuQYryIcWzXyMN0SCQWZ2QVLLc= @@ -387,20 +387,20 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= -go.opentelemetry.io/otel v1.41.0 h1:YlEwVsGAlCvczDILpUXpIpPSL/VPugt7zHThEMLce1c= -go.opentelemetry.io/otel v1.41.0/go.mod h1:Yt4UwgEKeT05QbLwbyHXEwhnjxNO6D8L5PQP51/46dE= +go.opentelemetry.io/otel v1.42.0 h1:lSQGzTgVR3+sgJDAU/7/ZMjN9Z+vUip7leaqBKy4sho= +go.opentelemetry.io/otel v1.42.0/go.mod h1:lJNsdRMxCUIWuMlVJWzecSMuNjE7dOYyWlqOXWkdqCc= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.35.0 h1:T0Ec2E+3YZf5bgTNQVet8iTDW7oIk03tXHq+wkwIDnE= go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.35.0/go.mod h1:30v2gqH+vYGJsesLWFov8u47EpYTcIQcBjKpI6pJThg= -go.opentelemetry.io/otel/metric v1.41.0 h1:rFnDcs4gRzBcsO9tS8LCpgR0dxg4aaxWlJxCno7JlTQ= -go.opentelemetry.io/otel/metric v1.41.0/go.mod h1:xPvCwd9pU0VN8tPZYzDZV/BMj9CM9vs00GuBjeKhJps= +go.opentelemetry.io/otel/metric v1.42.0 h1:2jXG+3oZLNXEPfNmnpxKDeZsFI5o4J+nz6xUlaFdF/4= +go.opentelemetry.io/otel/metric v1.42.0/go.mod h1:RlUN/7vTU7Ao/diDkEpQpnz3/92J9ko05BIwxYa2SSI= go.opentelemetry.io/otel/sdk v1.40.0 h1:KHW/jUzgo6wsPh9At46+h4upjtccTmuZCFAc9OJ71f8= go.opentelemetry.io/otel/sdk v1.40.0/go.mod h1:Ph7EFdYvxq72Y8Li9q8KebuYUr2KoeyHx0DRMKrYBUE= -go.opentelemetry.io/otel/trace v1.41.0 h1:Vbk2co6bhj8L59ZJ6/xFTskY+tGAbOnCtQGVVa9TIN0= -go.opentelemetry.io/otel/trace v1.41.0/go.mod h1:U1NU4ULCoxeDKc09yCWdWe+3QoyweJcISEVa1RBzOis= +go.opentelemetry.io/otel/trace v1.42.0 h1:OUCgIPt+mzOnaUTpOQcBiM/PLQ/Op7oq6g4LenLmOYY= +go.opentelemetry.io/otel/trace v1.42.0/go.mod h1:f3K9S+IFqnumBkKhRJMeaZeNk9epyhnCmQh/EysQCdc= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0= -go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8= +go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= +go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -411,10 +411,10 @@ golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliY golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= -golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= -golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= -golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa h1:Zt3DZoOFFYkKhDT3v7Lm9FDMEV06GpzjG2jrqW+QTE0= -golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa/go.mod h1:K79w1Vqn7PoiZn+TkNpx3BUWUQksGO3JcVX6qIjytmA= +golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4= +golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA= +golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 h1:jiDhWWeC7jfWqR9c/uplMOqJ0sbNlNWv0UkzE0vX1MA= +golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90/go.mod h1:xE1HEv6b+1SCZ5/uscMRjUBKtIxworgEcEi+/n9NQDQ= golang.org/x/image v0.27.0 h1:C8gA4oWU/tKkdCfYT6T2u4faJu3MeNS5O8UPWlPF61w= golang.org/x/image v0.27.0/go.mod h1:xbdrClrAUway1MUTEZDq9mz/UpRwYAkFFNUslZtcB+g= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -423,8 +423,8 @@ golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8= -golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w= +golang.org/x/mod v0.34.0 h1:xIHgNUUnW6sYkcM5Jleh05DvLOtwc6RitGHbDk4akRI= +golang.org/x/mod v0.34.0/go.mod h1:ykgH52iCZe79kzLLMhyCUzhMci+nQj+0XkbXpNYtVjY= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= @@ -436,10 +436,10 @@ golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo= -golang.org/x/net v0.51.0/go.mod h1:aamm+2QF5ogm02fjy5Bb7CQ0WMt1/WVM7FtyaTLlA9Y= -golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= -golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= +golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0= +golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw= +golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= +golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -448,8 +448,8 @@ golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= -golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= +golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -464,13 +464,12 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= -golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= +golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -480,8 +479,8 @@ golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= -golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg= -golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM= +golang.org/x/term v0.41.0 h1:QCgPso/Q3RTJx2Th4bDLqML4W6iJiaXFq2/ftQF13YU= +golang.org/x/term v0.41.0/go.mod h1:3pfBgksrReYfZ5lvYM0kSO0LIkAl4Yl2bXOkKP7Ec2A= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= @@ -491,8 +490,8 @@ golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= -golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= +golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8= +golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA= golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -502,16 +501,15 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= -golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k= -golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0= +golang.org/x/tools v0.43.0 h1:12BdW9CeB3Z+J/I/wj34VMl8X+fEXBxVR90JeMX5E7s= +golang.org/x/tools v0.43.0/go.mod h1:uHkMso649BX2cZK6+RpuIPXS3ho2hZo4FVwfoy1vIk0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171 h1:tu/dtnW1o3wfaxCOjSLn5IRX4YDcJrtlpzYkhHhGaC4= -google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171/go.mod h1:M5krXqk4GhBKvB596udGL3UyjL4I1+cTbK0orROM9ng= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 h1:ggcbiqK8WWh6l1dnltU4BgWGIGo+EVYxCaAPih/zQXQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 h1:VPWxll4HlMw1Vs/qXtN7BvhZqsS9cdAittCNvVENElA= +google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9/go.mod h1:7QBABkRtR8z+TEnmXTqIqwJLlzrZKVfAUm7tY3yGv0M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 h1:RmoJA1ujG+/lRGNfUnOMfhCy5EipVMyvUE+KNbPbTlw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -531,24 +529,24 @@ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q= gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA= honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= -k8s.io/api v0.35.2 h1:tW7mWc2RpxW7HS4CoRXhtYHSzme1PN1UjGHJ1bdrtdw= -k8s.io/api v0.35.2/go.mod h1:7AJfqGoAZcwSFhOjcGM7WV05QxMMgUaChNfLTXDRE60= -k8s.io/apiextensions-apiserver v0.35.2 h1:iyStXHoJZsUXPh/nFAsjC29rjJWdSgUmG1XpApE29c0= -k8s.io/apiextensions-apiserver v0.35.2/go.mod h1:OdyGvcO1FtMDWQ+rRh/Ei3b6X3g2+ZDHd0MSRGeS8rU= -k8s.io/apimachinery v0.35.2 h1:NqsM/mmZA7sHW02JZ9RTtk3wInRgbVxL8MPfzSANAK8= -k8s.io/apimachinery v0.35.2/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns= -k8s.io/client-go v0.35.2 h1:YUfPefdGJA4aljDdayAXkc98DnPkIetMl4PrKX97W9o= -k8s.io/client-go v0.35.2/go.mod h1:4QqEwh4oQpeK8AaefZ0jwTFJw/9kIjdQi0jpKeYvz7g= -k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= -k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= +k8s.io/api v0.35.4 h1:P7nFYKl5vo9AGUp1Z+Pmd3p2tA7bX2wbFWCvDeRv988= +k8s.io/api v0.35.4/go.mod h1:yl4lqySWOgYJJf9RERXKUwE9g2y+CkuwG+xmcOK8wXU= +k8s.io/apiextensions-apiserver v0.35.4 h1:HeP+Upp7ItdvnyGmub0yoix+2z5+ev4M5cE5TCgtOUU= +k8s.io/apiextensions-apiserver v0.35.4/go.mod h1:ogQlk+stIE8mnoRthSYCwlOS12fVqgWFiErMwPaXA7c= +k8s.io/apimachinery v0.35.4 h1:xtdom9RG7e+yDp71uoXoJDWEE2eOiHgeO4GdBzwWpds= +k8s.io/apimachinery v0.35.4/go.mod h1:NNi1taPOpep0jOj+oRha3mBJPqvi0hGdaV8TCqGQ+cc= +k8s.io/client-go v0.35.4 h1:DN6fyaGuzK64UvnKO5fOA6ymSjvfGAnCAHAR0C66kD8= +k8s.io/client-go v0.35.4/go.mod h1:2Pg9WpsS4NeOpoYTfHHfMxBG8zFMSAUi4O/qoiJC3nY= +k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc= +k8s.io/klog/v2 v2.140.0/go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0= k8s.io/kube-openapi v0.0.0-20260304202019-5b3e3fdb0acf h1:btPscg4cMql0XdYK2jLsJcNEKmACJz8l+U7geC06FiM= k8s.io/kube-openapi v0.0.0-20260304202019-5b3e3fdb0acf/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ= k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 h1:AZYQSJemyQB5eRxqcPky+/7EdBj0xi3g0ZcxxJ7vbWU= k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk= layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf h1:rRz0YsF7VXj9fXRF6yQgFI7DzST+hsI3TeFSGupntu0= layeh.com/gopher-json v0.0.0-20201124131017-552bb3c4c3bf/go.mod h1:ivKkcY8Zxw5ba0jldhZCYYQfGdb2K6u9tbYK1AwMIBc= -sigs.k8s.io/gateway-api v1.5.0 h1:duoo14Ky/fJXpjpmyMISE2RTBGnfCg8zICfTYLTnBJA= -sigs.k8s.io/gateway-api v1.5.0/go.mod h1:GvCETiaMAlLym5CovLxGjS0NysqFk3+Yuq3/rh6QL2o= +sigs.k8s.io/gateway-api v1.5.1 h1:RqVRIlkhLhUO8wOHKTLnTJA6o/1un4po4/6M1nRzdd0= +sigs.k8s.io/gateway-api v1.5.1/go.mod h1:GvCETiaMAlLym5CovLxGjS0NysqFk3+Yuq3/rh6QL2o= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg= sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= diff --git a/rpc/converter.go b/rpc/converter.go index 567f5af0..4f02cc53 100644 --- a/rpc/converter.go +++ b/rpc/converter.go @@ -250,6 +250,18 @@ func (c *Converter) shouldConvertCommand(cmd *cobra.Command) bool { if cmd.Parent() == nil || (cmd.Run == nil && cmd.RunE == nil) { return false } + // Skip an entity's `list` subcommand when its parent entity-root is itself + // runnable as a list shortcut (parent has RunE, an entity annotation, and + // no operation verb). Both produce the same GET /api/v1/, and the + // parent is the canonical endpoint that mirrors the CLI. + if meta := clicky.GetCommandOpenAPIMeta(cmd); meta != nil && meta.Verb == "list" { + parent := cmd.Parent() + if parent != nil && (parent.RunE != nil || parent.Run != nil) { + if parentMeta := clicky.GetCommandOpenAPIMeta(parent); parentMeta != nil && parentMeta.Verb == "" && parentMeta.Entity != "" { + return false + } + } + } return true } @@ -272,8 +284,18 @@ func (c *Converter) walkCommands(cmd *cobra.Command, fn func(*cobra.Command) err // inferHTTPMethod attempts to infer appropriate HTTP method from command semantics func (c *Converter) inferHTTPMethod(cmd *cobra.Command, cmdPath string) string { - if meta := clicky.GetCommandOpenAPIMeta(cmd); meta != nil && meta.Method != "" { - return strings.ToUpper(meta.Method) + if meta := clicky.GetCommandOpenAPIMeta(cmd); meta != nil { + if meta.Method != "" { + return strings.ToUpper(meta.Method) + } + // Entity-root command (annotated with entity name but no operation verb). + // It mirrors the CLI: typing `xero-cli accounts` lists, so the matching + // REST endpoint is GET /api/v1/accounts. Without this, the cmdPath + // "accounts" matches no CRUD keyword below and falls through to + // DefaultMethod (POST), colliding with the entity's `create` subcommand. + if meta.Verb == "" && meta.Entity != "" { + return "GET" + } } cmdLower := strings.ToLower(cmdPath) diff --git a/rpc/openapi.go b/rpc/openapi.go index 9f098818..d7592a63 100644 --- a/rpc/openapi.go +++ b/rpc/openapi.go @@ -271,8 +271,22 @@ func (g *OpenAPIGenerator) GenerateFromService(service *RPCService) *OpenAPISpec } // GenerateFromCobra generates an OpenAPI spec directly from a Cobra command tree +// using the default converter Config. Equivalent to GenerateFromCobraWithConfig +// with a nil config. func (g *OpenAPIGenerator) GenerateFromCobra(rootCmd *cobra.Command) (*OpenAPISpec, error) { - converter := NewConverter(DefaultConfig()) + return g.GenerateFromCobraWithConfig(rootCmd, nil) +} + +// GenerateFromCobraWithConfig generates an OpenAPI spec from a Cobra command +// tree using the supplied converter Config (path prefix, default method, tags). +// Pass nil to fall back to DefaultConfig. Callers that mount the executor under +// a non-default PathPrefix (see ExecutorConfig.PathPrefix) MUST use this so the +// generated spec paths match the actually-registered ServeMux patterns. +func (g *OpenAPIGenerator) GenerateFromCobraWithConfig(rootCmd *cobra.Command, cfg *Config) (*OpenAPISpec, error) { + if cfg == nil { + cfg = DefaultConfig() + } + converter := NewConverter(cfg) service, err := converter.ConvertCommandTree(rootCmd) if err != nil { return nil, fmt.Errorf("failed to convert commands to RPC service: %w", err) diff --git a/rpc/serve.go b/rpc/serve.go index 4b1f1ddf..c65eb272 100644 --- a/rpc/serve.go +++ b/rpc/serve.go @@ -43,11 +43,12 @@ type ServeConfig struct { // SwaggerServer serves API reference documentation for the OpenAPI specification. type SwaggerServer struct { - config *ServeConfig - rootCmd *cobra.Command - generator *OpenAPIGenerator - server *http.Server - executor *CommandExecutor // Optional command executor + config *ServeConfig + rootCmd *cobra.Command + generator *OpenAPIGenerator + converterCfg *Config // Converter config used to build executor routes; reused when (re)generating the spec. + server *http.Server + executor *CommandExecutor // Optional command executor } // TemplateData holds data for rendering the HTML template @@ -69,9 +70,18 @@ func NewSwaggerServer(config *ServeConfig, rootCmd *cobra.Command, openAPIConfig generator: generator, } - // Initialize executor if enabled + // Initialize executor if enabled. Honor ExecutorConfig.PathPrefix so the + // converter — which is the source of both the OpenAPI paths and the + // ServeMux patterns — mounts the executor under the configured prefix + // instead of the hardcoded "/api/v1". Without this override the prefix + // only affected the runtime executor and the registered routes silently + // stayed under "/api/v1", colliding with anything else mounted there. if config.Executor != nil && config.Executor.Enabled { - converter := NewConverter(DefaultConfig()) + server.converterCfg = DefaultConfig() + if prefix := strings.TrimRight(config.Executor.PathPrefix, "/"); prefix != "" { + server.converterCfg.PathPrefix = prefix + } + converter := NewConverter(server.converterCfg) service, err := converter.ConvertCommandTree(rootCmd) if err != nil { fmt.Printf("⚠️ Warning: Failed to build executor command tree: %v\n", err) @@ -99,6 +109,51 @@ func (s *SwaggerServer) RegisterRoutes(mux *http.ServeMux) { } } +// HandleOpenAPIJSON serves the OpenAPI 3 spec as JSON. Exported so callers +// that compose their own mux (and want to wrap or override this endpoint) +// can re-mount it without going through RegisterRoutes. +func (s *SwaggerServer) HandleOpenAPIJSON(w http.ResponseWriter, r *http.Request) { + s.handleOpenAPIJSON(w, r) +} + +// HandleOpenAPIYAML serves the OpenAPI 3 spec as YAML. See HandleOpenAPIJSON. +func (s *SwaggerServer) HandleOpenAPIYAML(w http.ResponseWriter, r *http.Request) { + s.handleOpenAPIYAML(w, r) +} + +// HandleEntities serves the entity metadata endpoint. Exported so callers +// composing their own mux can register it independently of RegisterRoutes. +func (s *SwaggerServer) HandleEntities(w http.ResponseWriter, r *http.Request) { + s.handleEntities(w, r) +} + +// HandleHealth serves the liveness probe. Exported for the same reason as +// HandleEntities. +func (s *SwaggerServer) HandleHealth(w http.ResponseWriter, r *http.Request) { + s.handleHealth(w, r) +} + +// ConverterConfig returns the converter Config used to build the executor's +// routes (path prefix, default method, etc.). Callers that re-run +// GenerateFromCobraWithConfig outside this server — e.g. to merge a separate +// OpenAPI document with the executor spec — should pass this value so the +// regenerated paths match the actually-registered ServeMux patterns. Returns +// nil when the server was constructed without an executor. +func (s *SwaggerServer) ConverterConfig() *Config { + return s.converterCfg +} + +// RegisterExecutionRoutes registers only the dynamic executor patterns +// derived from the RPC service (one method+path per operation). Exported so +// callers that want everything from RegisterRoutes except the openapi +// handlers (because they intend to wrap /api/openapi.json with a merge +// across multiple specs) can opt in route-by-route. +func (s *SwaggerServer) RegisterExecutionRoutes(mux *http.ServeMux) { + if s.executor != nil { + s.registerExecutionRoutes(mux) + } +} + func (s *SwaggerServer) Start(ctx context.Context) error { mux := http.NewServeMux() @@ -198,7 +253,7 @@ func (s *SwaggerServer) handleSwaggerUI(w http.ResponseWriter, r *http.Request) // handleOpenAPIJSON serves the OpenAPI specification in JSON format func (s *SwaggerServer) handleOpenAPIJSON(w http.ResponseWriter, r *http.Request) { - spec, err := s.generator.GenerateFromCobra(s.rootCmd) + spec, err := s.generator.GenerateFromCobraWithConfig(s.rootCmd, s.converterCfg) if err != nil { http.Error(w, fmt.Sprintf("Failed to generate OpenAPI spec: %v", err), http.StatusInternalServerError) return @@ -223,7 +278,7 @@ func (s *SwaggerServer) handleOpenAPIJSON(w http.ResponseWriter, r *http.Request // handleOpenAPIYAML serves the OpenAPI specification in YAML format func (s *SwaggerServer) handleOpenAPIYAML(w http.ResponseWriter, r *http.Request) { - spec, err := s.generator.GenerateFromCobra(s.rootCmd) + spec, err := s.generator.GenerateFromCobraWithConfig(s.rootCmd, s.converterCfg) if err != nil { http.Error(w, fmt.Sprintf("Failed to generate OpenAPI spec: %v", err), http.StatusInternalServerError) return diff --git a/task/task.go b/task/task.go index 8c69f8df..cb199c34 100644 --- a/task/task.go +++ b/task/task.go @@ -354,13 +354,13 @@ func (t *Task) SetStatus(status Status) { defer t.mu.Unlock() switch status { - case StatusSuccess, StatusCancelled, StatusFailed: + case StatusSuccess, StatusCancelled, StatusFailed, StatusWarning: t.endTime = time.Now() if t.cancel != nil { t.cancel() t.cancel = nil } - case StatusPending, StatusRunning, StatusWarning, StatusPASS, StatusFAIL, StatusERR, StatusSKIP: + case StatusPending, StatusRunning, StatusPASS, StatusFAIL, StatusERR, StatusSKIP: // These statuses don't require special cleanup } t.status = status diff --git a/task/task_status_test.go b/task/task_status_test.go new file mode 100644 index 00000000..220f52b5 --- /dev/null +++ b/task/task_status_test.go @@ -0,0 +1,68 @@ +package task + +import ( + "testing" + "time" +) + +// Regression: StatusWarning must be terminal — endTime is frozen so the +// rendered duration stops ticking and the task context is cancelled. +// Before this fix, Warning() left endTime zero, so getDuration() kept +// returning time.Now()-startTime on every render, producing an ever-growing +// elapsed counter even after the task's goroutine had returned. +func TestSetStatus_TerminalStatesFreezeEndTime(t *testing.T) { + cases := []struct { + name string + mark func(*Task) + status Status + }{ + {"Success", func(tk *Task) { tk.Success() }, StatusSuccess}, + {"Failed", func(tk *Task) { tk.Failed() }, StatusFailed}, + {"Warning", func(tk *Task) { tk.Warning() }, StatusWarning}, + } + + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + tm := newTestManager(1) + t.Cleanup(func() { close(tm.shutdown) }) + + tk := tm.newTask(tc.name + "-task") + tk.SetStatus(StatusRunning) + + cancelCh := tk.ctx.Done() + + tc.mark(tk) + + tk.mu.Lock() + end := tk.endTime + tk.mu.Unlock() + if end.IsZero() { + t.Fatalf("%s: endTime is zero — task not marked terminal", tc.name) + } + + select { + case <-cancelCh: + default: + t.Fatalf("%s: task ctx not cancelled — SetStatus skipped the terminal cleanup branch", tc.name) + } + + d1 := tk.WaitTime() + time.Sleep(20 * time.Millisecond) + d2 := tk.WaitTime() + if d1 != d2 { + t.Fatalf("%s: WaitTime kept ticking after terminal status: %v -> %v", tc.name, d1, d2) + } + + tk.mu.Lock() + rendered1 := tk.getDuration() + tk.mu.Unlock() + time.Sleep(20 * time.Millisecond) + tk.mu.Lock() + rendered2 := tk.getDuration() + tk.mu.Unlock() + if rendered1 != rendered2 { + t.Fatalf("%s: getDuration() kept ticking after terminal status: %q -> %q", tc.name, rendered1, rendered2) + } + }) + } +}