Documentation
¶
Overview ¶
Package bulk provides shared ID resolution and result types for bulk operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Args []string // positional args
Stdin bool // --stdin flag
Query string // --query value
}
Config specifies how to resolve IDs for a bulk operation.
type Result ¶
type Result struct {
Action string `json:"action"`
IDs []string `json:"ids"`
Count int `json:"count"`
DryRun bool `json:"dryRun"`
Details any `json:"details,omitempty"`
ItemNoun string `json:"-"` // e.g. "message", "file", "contact"; defaults to "message"
}
Result represents the outcome of a bulk operation.
Click to show internal directories.
Click to hide internal directories.