search

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSearchCmd

func NewSearchCmd(f *factory.Factory) *cobra.Command

NewSearchCmd creates a new search command

Types

type SearchOutput

type SearchOutput struct {
	Query   string         `json:"query"`
	Count   int            `json:"count"`
	Results []SearchRecord `json:"results"`
}

SearchOutput represents the JSON output format

type SearchRecord

type SearchRecord struct {
	ID           int64     `json:"id"`
	Type         string    `json:"type"`
	Title        string    `json:"title"`
	Status       string    `json:"status"`
	Project      string    `json:"project"`
	ProjectID    int64     `json:"project_id"`
	Creator      string    `json:"creator"`
	CreatorEmail string    `json:"creator_email,omitempty"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
	URL          string    `json:"url"`
	ParentTitle  string    `json:"parent_title,omitempty"`
	ParentType   string    `json:"parent_type,omitempty"`
}

SearchRecord represents a single search result for JSON output

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL