Browse Source

repl: Handle inventory case

master
Elis Hirwing 3 years ago
parent
commit
7283fe58ae
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 5
      repl.php

5
repl.php

@ -48,6 +48,11 @@ while (true) {
break;
case 'i':
// Inventory case
$response = $httpClient->get('/inventory/'.$item);
$result = json_decode($response->getBody());
echo $result->status.', current stock: '.($result->stock ?? 0).PHP_EOL;
break;
case 'r':
// Refill case

Loading…
Cancel
Save