Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workshop-soap
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SOA-course
workshop-soap
Commits
d437adaf
Commit
d437adaf
authored
5 years ago
by
Leon de Vries
Browse files
Options
Downloads
Patches
Plain Diff
Rename commands to inventory
parent
1026892a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spring-shell.log
+2
-0
2 additions, 0 deletions
spring-shell.log
src/main/java/nl/utwente/soa/inventoryApplication/commands/InventoryCommands.java
+3
-1
3 additions, 1 deletion
.../soa/inventoryApplication/commands/InventoryCommands.java
with
5 additions
and
1 deletion
spring-shell.log
+
2
−
0
View file @
d437adaf
...
...
@@ -7,3 +7,5 @@
1583005822321:current
1583005843578:purchase
1583005850295:sell 50000
1583006076290:help
1583006336388:exit
This diff is collapsed.
Click to expand it.
src/main/java/nl/utwente/soa/inventoryApplication/commands/
Calculate
Commands.java
→
src/main/java/nl/utwente/soa/inventoryApplication/commands/
Inventory
Commands.java
+
3
−
1
View file @
d437adaf
...
...
@@ -7,7 +7,7 @@ import org.springframework.shell.standard.ShellComponent;
import
org.springframework.shell.standard.ShellMethod
;
@ShellComponent
public
class
Calculate
Commands
{
public
class
Inventory
Commands
{
@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"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment