Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory move tool should use stdin #4

Open
trickeydan opened this issue Sep 9, 2018 · 1 comment
Open

Inventory move tool should use stdin #4

trickeydan opened this issue Sep 9, 2018 · 1 comment

Comments

@trickeydan
Copy link
Contributor

When moving many items, it is useful for the inv-mv command to accept part codes on stdin separated by newlines so that we can scan codes in.

@PeterJCLaw
Copy link
Member

Note: the current workarounds for this are:

  • For incremental moves (part codes checked and items moved as they're input, but slower overall as the inventory is reloaded each time)
$ xargs -l sr inv-mv
  • For bulk moves (part codes checked and items moved all in one go at the end, but possibly faster overall as the inventory is only loaded once; this approach also makes no changes at all if any of the part codes error)
$ xargs sr inv-mv

The ideal solution would likely have inv-mv able to let the user decide the approach when a part-code is wrong (i.e: what to do with the other part codes) and wouldn't involve loading the inventory more than once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants