Page 1 of 1

Command line interface

PostPosted: Thu 16 Jul 2020 13:48
by Enno
Salut Bruno,

It would be very handy to be able to run stuff via the command line. Scripting updating of libraries and generating code would make it way easier to test the software.

Re: Command line interface

PostPosted: Thu 16 Jul 2020 16:08
by Bruno Pagès
Hallo,

Enno wrote:It would be very handy to be able to run stuff via the command line. Scripting updating of libraries

This is effectively not possible currently, I note that request

Enno wrote:It would be very handy to be able to run stuff via the command line. ... generating code

This is already possible, when you start BoUML you can automatically run a plug-out applied at the project level, and the code generators are plug-out.

Please refer to the chapter plug-out of the reference manual

Re: Command line interface

PostPosted: Fri 17 Jul 2020 14:55
by Enno
Salut Bruno,

Bruno Pagès wrote:Hallo,
Enno wrote:It would be very handy to be able to run stuff via the command line. ... generating code

This is already possible, when you start BoUML you can automatically run a plug-out applied at the project level, and the code generators are plug-out.

Please refer to the chapter plug-out of the reference manual


Is it possible to run the cpp_generator plugout for only one package, like '-exec cpp_generator top/some_package -exit'?

Re: Command line interface

PostPosted: Fri 17 Jul 2020 15:11
by Bruno Pagès
Enno wrote:Is it possible to run the cpp_generator plugout for only one package, like '-exec cpp_generator top/some_package -exit'?

not directly, the plut-out launch when starting BoUML is always applied on the project (top-level package) whatever the plug-out is, but that plug-out can be defined by you allowing you to do whatever you want, including to apply plug-out(s). So you can define your own plug-out to apply the code generator you want on the package/class view/class/deployment view/artifact you want depending on the arguments.

Anyway note the code generation does not rewrite the files already having the right content.

Re: Command line interface

PostPosted: Fri 18 Sep 2020 19:44
by Bruno Pagès
Enno wrote:It would be very handy to be able to run stuff via the command line. Scripting updating of libraries


The release 7.10 is available and add that new feature, see historic