Skip to content
Snippets Groups Projects
Commit d437adaf authored by Leon de Vries's avatar Leon de Vries
Browse files

Rename commands to inventory

parent 1026892a
Branches
No related tags found
No related merge requests found
......@@ -7,3 +7,5 @@
1583005822321:current
1583005843578:purchase
1583005850295:sell 50000
1583006076290:help
1583006336388:exit
......@@ -7,7 +7,7 @@ import org.springframework.shell.standard.ShellComponent;
import org.springframework.shell.standard.ShellMethod;
@ShellComponent
public class CalculateCommands {
public class InventoryCommands {
@Autowired private InventoryService inventoryService;
......@@ -22,6 +22,8 @@ public class CalculateCommands {
@ShellMethod("Buy new inventory")
public String purchase() {
// Do a request to the Purchase service
inventoryService.addInventory(50);
return "Jeej new inventory";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment