
Originally Posted by
radu19
Hello everybody,
I am trying to build a roo add-on, and one of the commands should accept a special parameter. It is special in the sense that I want to choose from a generated list of items (not enum, because enum is static). The command would look like:
@CliCommand(value = "say hello", help = "Prints welcome message to the Roo shell")
public void sayHello(
@CliOption(key = "playlist") PlayList something)
where PlayList is my custom class.
I have created a PlayListConverter in my add-on, but roo simply ignores it.
My question is how can I register this converter, or how can I make my command see my custom list?
Hope that there is somebody that knows and could share this information, because I was not able to find any useful information on the internet.
All the best,
Radu