Hello Freeman,

We managed to fix it. It was not that obvious from my question that we
had trouble with the command line format.
A call like this works as expected (please note we supply --package
multiple times):

provisionr:create --id amazon -k web-1 --size 5 -h m1.small --port 80
--port 443 --package nginx --package gunicorn

Cheers,

[1] https://github.com/axemblr/axemblr-provisionr/pull/99

On Tue, Jan 8, 2013 at 2:54 AM, Freeman Fang <[email protected]> wrote:
> Hi,
>
> You may need take [1] & [2] as example
>
> [1]https://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/features/command/src/main/java/org/apache/karaf/features/command/AddUrlCommand.java
> [2]https://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/admin/command/src/main/java/org/apache/karaf/admin/command/CreateCommand.java
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: @Freeman小屋
>
> On 2013-1-8, at 上午12:26, Ioan Eugen Stan wrote:
>
> Hello,
>
> Could you please tell me how can I write multi-valued commands in
> Activiti Karaf? We need to supply a list of packages to our
> 'create-pool' command [1].
> I've tried with colon separated '--packages nginx,puppet' in our
> implementation [1] but without luck. From the examples I found I don't
> seem to figure out what I'm doing wrong.
>
> Cheers,
>
> [1]
> https://github.com/axemblr/axemblr-provisionr/blob/master/karaf/commands/src/main/java/com/axemblr/provisionr/commands/CreatePoolCommand.java
>
> --
> Ioan Eugen Stan / CTO / http://axemblr.com
>
>



-- 
Ioan Eugen Stan / CTO / http://axemblr.com

Reply via email to