telosys-tools-bricks / telosys-cli

Telosys CLI - Command Line Interface
https://www.telosys.org/
GNU Lesser General Public License v3.0
166 stars 23 forks source link

Bundle-name must be set before using this command! #16

Closed magick93 closed 4 years ago

magick93 commented 5 years ago

Hi

Im trying to understand what a bundle is, and how to move past the Bundle-name must be set before using this command! step.

I've tried the following:

telosys#(Person.model)>b
Undefined (no current bundle)
telosys#(Person.model)>nb test
Invalid command 'nb'
telosys#(Person.model)>lb
1 bundle(s) :
 . java7-web-rest-jaxrs1-T300
telosys#(Person.model)>ib java7-web-rest-jaxrs1-T300
Installing 1 bundle(s) from GitHub... 
 . 'java7-web-rest-jaxrs1-T300' : installed. 
telosys#(Person.model)>gen
Bundle-name must be set before using this command!
telosys#(Person.model)>gen test
Bundle-name must be set before using this command!
telosys#(Person.model)>eb
Bundle-name must be set before using this command!
telosys#(Person.model)>eb
Bundle-name must be set before using this command!
telosys#(Person.model)>b
Undefined (no current bundle)
l-gu commented 5 years ago

A bundle is a set of templates used for code generation. In your example you have installed the bundle "java7-web-rest-jaxrs1-T300", so you can use it. For code generation Telosys needs 1 model + 1 bundle You must select the current model with "m" command and select the current bundle with "b" command In you case "b jaxrs" will select the "java7-web-rest-jaxrs1-T300" bundle (because it's the only bundle containing "jaxrs" in its name) After that you'll see the current bundle in the prompt (with the current model)

Once you have 1 model + 1 bundle you can launch the generator

For this type of question please use Stackoverflow with the "telosys" tag or the forum

For more information see the doc here : http://www.telosys.org/templates.html

luylucas10 commented 7 months ago

How can I use a local bundle instead install one? I've created my files, but I needed to upload to github and install the same files, duplicate them.