-
Notifications
You must be signed in to change notification settings - Fork 3
Variable: include
Misat11 edited this page May 9, 2020
·
4 revisions
This variable link other file to place where is it.
Yaml:
- include: [loader]:[variable with data]@<file>
# Example usage
- include: yml:shop3@shop.yml
- include: :shop3@shop.yml
- include: shop.yml
- include: csv@shop.csv
# Short variant:
- @shop.yml
- @shop.csv
- @yml:data3@shop.ymlYou don't have to specify loader but when you have another extension than is normal you need it.
Note that you can't do this:
- include: file
stack: STONE # this will be ignoredYou must do this:
- include: file
- stack: STONE # stack can't have same hyphen as definitionGroovy:
inventory {
// include '[loader]:[variable with data]@<file>'
// Example usage
include 'yml:shop3@shop.yml'
item('...') {
include ':shop3@shop.yml'
}
include 'shop.yml'
include 'csv@shop.csv'
}Can't find what are you looking for on this wiki? Maybe our automatically generated javadoc could help you https://docs.screamingsandals.org/simpleinventories/simpleinventories-core/
- Welcome on this wiki
- Formats:
- Variables:
- Callbacks: (Groovy only)
-
Examples:
- Making shop (Groovy only)
- Making vault shop (Groovy only)