remove

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 6 Imported by: 0

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

func NewDefaultRemoveCmd() *cobra.Command

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

func NewRemoveCmd(db removeDB) *cobra.Command

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.

Jump to

Keyboard shortcuts

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