Documentation
¶
Index ¶
- func FlushTable(tw *tabwriter.Writer)
- func JoinStrings(ss []string, fallback string) string
- func KV(w io.Writer, rows [][2]string)
- func NewTabWriter(w io.Writer) *tabwriter.Writer
- func PrintBatchResult(w io.Writer, resp *client.SignalBatchResponse)
- func PrintCompanies(w io.Writer, companies []client.CompanyListCompany, total int)
- func PrintCompanyList(w io.Writer, list *client.CompanyList)
- func PrintCompanyLists(w io.Writer, lists []client.CompanyList, total int)
- func PrintCompanySearchResults(w io.Writer, companies []client.CompanyListCompany, total int)
- func PrintContactList(w io.Writer, list *client.ContactList)
- func PrintContactLists(w io.Writer, lists []client.ContactList, total int)
- func PrintContactSearchResults(w io.Writer, contacts []client.ContactSearchResult, count int)
- func PrintContacts(w io.Writer, contacts []client.ContactListItem, total int)
- func PrintExtractApplyResult(w io.Writer, r *client.ExtractApplyResult)
- func PrintExtractProposal(w io.Writer, p *client.ExtractProposal)
- func PrintMarketSignal(w io.Writer, sig *client.MarketSignal)
- func PrintMarketSignalSubscription(w io.Writer, sub *client.MarketSignalSubscription)
- func PrintMarketSignalSubscriptions(w io.Writer, subs []client.MarketSignalSubscription, total int)
- func PrintMarketSignals(w io.Writer, signals []client.MarketSignal, total int)
- func PrintProfileAssignment(w io.Writer, a *client.ProfileAssignment)
- func PrintProfileAssignments(w io.Writer, assignments []client.ProfileAssignment)
- func PrintScoreResult(w io.Writer, s *client.ScoreResult)
- func PrintScoreResults(w io.Writer, scores []client.ScoreResult)
- func PrintScoringProfile(w io.Writer, p *client.ScoringProfile)
- func PrintScoringProfiles(w io.Writer, profiles []client.ScoringProfile)
- func PrintScoringRule(w io.Writer, r *client.ScoringRule)
- func PrintScoringRules(w io.Writer, rules []client.ScoringRule)
- func PrintSignal(w io.Writer, sig *client.Signal)
- func PrintSignalCreated(w io.Writer, sig *client.Signal)
- func PrintSignalList(w io.Writer, signals []client.SignalListItem, total int)
- func PrintSignalTemplate(w io.Writer, tmpl *client.SignalTemplate)
- func PrintSignalTemplates(w io.Writer, templates []client.SignalTemplate, total int)
- func PrintSubscription(w io.Writer, sub *client.Subscription)
- func PrintSubscriptions(w io.Writer, subs []client.Subscription, total int)
- func PrintSummary(w io.Writer, summary []client.DataPoint)
- func PrintSummaryRecords(w io.Writer, records []client.SummaryRecord, total int)
- func TruncateString(s string, n int) string
- type Spinner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushTable ¶
FlushTable flushes a tabwriter, discarding the write error. Writes to stdout/stderr in a CLI tool cannot meaningfully fail.
func JoinStrings ¶
JoinStrings joins a string slice with commas, or returns fallback if empty.
func NewTabWriter ¶
NewTabWriter returns a tabwriter suitable for CLI tables.
func PrintBatchResult ¶ added in v0.1.7
func PrintBatchResult(w io.Writer, resp *client.SignalBatchResponse)
PrintBatchResult renders the result of a batch signal creation.
func PrintCompanies ¶
func PrintCompanies(w io.Writer, companies []client.CompanyListCompany, total int)
PrintCompanies renders a table of companies from a list.
func PrintCompanyList ¶
func PrintCompanyList(w io.Writer, list *client.CompanyList)
PrintCompanyList renders a single company list.
func PrintCompanyLists ¶
func PrintCompanyLists(w io.Writer, lists []client.CompanyList, total int)
PrintCompanyLists renders a table of company lists.
func PrintCompanySearchResults ¶
func PrintCompanySearchResults(w io.Writer, companies []client.CompanyListCompany, total int)
PrintCompanySearchResults renders search result companies.
func PrintContactList ¶
func PrintContactList(w io.Writer, list *client.ContactList)
PrintContactList renders a single contact list.
func PrintContactLists ¶
func PrintContactLists(w io.Writer, lists []client.ContactList, total int)
PrintContactLists renders a table of contact lists.
func PrintContactSearchResults ¶ added in v0.1.6
func PrintContactSearchResults(w io.Writer, contacts []client.ContactSearchResult, count int)
PrintContactSearchResults renders a table of contact search results.
func PrintContacts ¶
func PrintContacts(w io.Writer, contacts []client.ContactListItem, total int)
PrintContacts renders a table of contacts in a list.
func PrintExtractApplyResult ¶ added in v0.1.9
func PrintExtractApplyResult(w io.Writer, r *client.ExtractApplyResult)
PrintExtractApplyResult renders the result of a `template extract apply` call.
func PrintExtractProposal ¶ added in v0.1.9
func PrintExtractProposal(w io.Writer, p *client.ExtractProposal)
PrintExtractProposal renders the result of a `template extract propose` call. Splits clusters by kind (existing-template attaches vs new-template proposals) so the user can see at a glance what the LLM decided.
func PrintMarketSignal ¶ added in v0.1.7
func PrintMarketSignal(w io.Writer, sig *client.MarketSignal)
PrintMarketSignal renders a single market signal detail.
func PrintMarketSignalSubscription ¶ added in v0.1.7
func PrintMarketSignalSubscription(w io.Writer, sub *client.MarketSignalSubscription)
PrintMarketSignalSubscription renders a single market signal subscription.
func PrintMarketSignalSubscriptions ¶ added in v0.1.7
func PrintMarketSignalSubscriptions(w io.Writer, subs []client.MarketSignalSubscription, total int)
PrintMarketSignalSubscriptions renders a table of subscriptions.
func PrintMarketSignals ¶ added in v0.1.7
func PrintMarketSignals(w io.Writer, signals []client.MarketSignal, total int)
PrintMarketSignals renders a table of market signals.
func PrintProfileAssignment ¶ added in v0.1.8
func PrintProfileAssignment(w io.Writer, a *client.ProfileAssignment)
PrintProfileAssignment renders a single profile assignment.
func PrintProfileAssignments ¶ added in v0.1.8
func PrintProfileAssignments(w io.Writer, assignments []client.ProfileAssignment)
PrintProfileAssignments renders a table of profile assignments.
func PrintScoreResult ¶ added in v0.1.8
func PrintScoreResult(w io.Writer, s *client.ScoreResult)
PrintScoreResult renders a single score with its contributions.
func PrintScoreResults ¶ added in v0.1.8
func PrintScoreResults(w io.Writer, scores []client.ScoreResult)
PrintScoreResults renders a compact table of scores across objects/dimensions.
func PrintScoringProfile ¶ added in v0.1.8
func PrintScoringProfile(w io.Writer, p *client.ScoringProfile)
PrintScoringProfile renders a single scoring profile.
func PrintScoringProfiles ¶ added in v0.1.8
func PrintScoringProfiles(w io.Writer, profiles []client.ScoringProfile)
PrintScoringProfiles renders a table of scoring profiles.
func PrintScoringRule ¶ added in v0.1.8
func PrintScoringRule(w io.Writer, r *client.ScoringRule)
PrintScoringRule renders a single scoring rule with its point values.
func PrintScoringRules ¶ added in v0.1.8
func PrintScoringRules(w io.Writer, rules []client.ScoringRule)
PrintScoringRules renders a table of scoring rules.
func PrintSignal ¶
PrintSignal renders a signal result to w.
func PrintSignalCreated ¶
PrintSignalCreated renders a minimal "signal created" message (for --no-wait).
func PrintSignalList ¶ added in v0.1.7
func PrintSignalList(w io.Writer, signals []client.SignalListItem, total int)
PrintSignalList renders a table of signal list items.
func PrintSignalTemplate ¶ added in v0.1.7
func PrintSignalTemplate(w io.Writer, tmpl *client.SignalTemplate)
PrintSignalTemplate renders a single signal template.
func PrintSignalTemplates ¶ added in v0.1.7
func PrintSignalTemplates(w io.Writer, templates []client.SignalTemplate, total int)
PrintSignalTemplates renders a table of signal templates.
func PrintSubscription ¶ added in v0.1.3
func PrintSubscription(w io.Writer, sub *client.Subscription)
PrintSubscription renders a single subscription.
func PrintSubscriptions ¶ added in v0.1.3
func PrintSubscriptions(w io.Writer, subs []client.Subscription, total int)
PrintSubscriptions renders a table of subscriptions.
func PrintSummary ¶ added in v0.1.7
PrintSummary renders a generated summary.
func PrintSummaryRecords ¶ added in v0.1.7
func PrintSummaryRecords(w io.Writer, records []client.SummaryRecord, total int)
PrintSummaryRecords renders a table of summary records.
func TruncateString ¶
TruncateString truncates s to n chars, appending "..." if truncated.
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner wraps briandowns/spinner with TTY detection.
func NewSpinner ¶
NewSpinner creates a spinner that only renders when stdout is a TTY and quiet/json modes are off.