Documentation
¶
Overview ¶
Package remove implements the remove command for moving items and locations to the Removed system location, hiding them from normal inventory views.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultRemoveCmd ¶
NewDefaultRemoveCmd returns a remove command that opens the database from context configuration at runtime. This is the production entry point registered with the root command.
func NewRemoveCmd ¶
NewRemoveCmd returns a remove command that uses the provided db for all database operations. The caller retains no reference to db after this call; the returned command's RunE closes it via defer before returning.
Types ¶
type ItemResult ¶
type ItemResult struct {
ItemID string `json:"item_id"`
DisplayName string `json:"display_name"`
PreviousLocation string `json:"previous_location"`
EventID int64 `json:"event_id"`
}
ItemResult represents the outcome of removing an item.
type LocationResult ¶
type LocationResult struct {
LocationID string `json:"location_id"`
DisplayName string `json:"display_name"`
EventID int64 `json:"event_id"`
}
LocationResult represents the outcome of removing a location.