add

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: 3 Imported by: 0

Documentation

Overview

Package add implements adding items and locations to inventory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddCmd deprecated

func GetAddCmd() *cobra.Command

GetAddCmd returns the add command using the default configuration.

Deprecated: Use NewDefaultAddCmd instead.

func GetItemCmd

func GetItemCmd() *cobra.Command

GetItemCmd returns the item subcommand, initializing it if necessary.

func GetLocationCmd

func GetLocationCmd() *cobra.Command

GetLocationCmd returns the location subcommand, initializing it if necessary.

func NewAddCmd

func NewAddCmd() *cobra.Command

NewAddCmd returns an add command with the given subcommands registered. This is the canonical constructor; both subcommands (item, location) are always registered since they delegate database access to internal/cli.

func NewDefaultAddCmd

func NewDefaultAddCmd() *cobra.Command

NewDefaultAddCmd returns an add command ready for production use. Alias for NewAddCmd — kept symmetric with the other command packages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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