No description
Find a file
2020-08-29 10:11:44 -04:00
cli prepare for publish 2020-05-24 10:52:01 -04:00
manager fix cargo file 2020-05-24 10:51:02 -04:00
.gitignore Remove target folders 2020-02-22 12:26:33 -05:00
Cargo.lock update deps 2020-05-24 10:53:37 -04:00
Cargo.toml init 2020-01-05 11:45:00 -05:00
inv.1 idk lol 2020-02-28 22:58:15 -05:00
LICENSE Initial commit 2020-01-05 11:48:27 -05:00
README.md Update README.md 2020-07-30 16:01:39 +02:00
test.sh fix minor bug in ri --expired flag 2020-03-04 10:31:49 -05:00

Support an Open Source Developer! ♥️

Become a patron

Inventory Managoat

A Simple Command Line Inventory Manager.
Prevent food waste and never lose track of your items!

Description

Use Inventory Manager to keep a list of things that you own.
It provides simple but effective ways to interact with this list.

To see all available options:

inv --help
inv <SUBCOMMAND> --help

Common Usage

Create and print new item types:

# Creates the "Toilet Paper" type. You always want to keep at least 5 of those.
inv ct "Toilet Paper" --minimum-quantity 5
>1 # The ID for toilet paper
# Creates the "Milk" type which stays fresh one week.
inv ct "Milk" --ttl "1week"
>2 # The ID for milk
# Show the existing types.
inv rt

Create a new item instance (a specific item that exists):

# Creates 3 instances of toilet paper (ID = 0)
inv ci 1 --quantity 3
>2 # Instance ID for those three toilet paper rolls
# List instances
inv ri

List items that you don't have enough of:

inv list-missing

List items that expired (I wouldn't suggest eating those!):

inv list-expired

Use an item:

# Use a toilet paper instance (ID = 2)
inv use 2

Put an item to the trash:

# Trash a toilet paper instance (ID = 2)
inv trash 2

Install Using Cargo

First, install Rust (using rustup). Then, it is as simple as:

cargo install -f inv

Build From Source

First, install Rust (using rustup).

Then, run the following to build from source:

# Create a local copy
git clone https://github.com/jojolepro/inventory-managoat
cd inventory-managoat

# Build from source files
cargo build --release

# (Optional) Install for the current user
mv target/release/inv ~/.local/bin/inv

Note: On windows, you should run those commands inside of git bash or Windows Subsystem for Linux.