kanboard-api/application.go

17 lines
427 B
Go
Raw Permalink Normal View History

package kanboard
import (
"context"
"fmt"
)
// GetColorList returns the available task colors.
// Returns a map of color_id to display name (e.g., "yellow" -> "Yellow").
func (c *Client) GetColorList(ctx context.Context) (map[string]string, error) {
var result map[string]string
if err := c.call(ctx, "getColorList", nil, &result); err != nil {
return nil, fmt.Errorf("getColorList: %w", err)
}
return result, nil
}