felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristiano Gavião <cvgav...@gmail.com>
Subject Re: Felix GoGo - what the best way to create interactive commands?
Date Tue, 09 Dec 2014 15:36:31 GMT
Hi Jan, I will take a look.

thank you.

2014-11-29 13:24 GMT-03:00 Jan Willem Janssen <janwillem.janssen@luminis.eu>
:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> On 29/11/14 15:36, Cristiano Gavião wrote:
> > I need to create a command that could follow different workflows
> > depending on the user choice and the latest result...
> >
> > I mean, when the user triggers the command (with some parameters)
> > it will be executed and I should display some options(depending on
> > the result) and wait for the user to choose one.
> >
> > should I use System.in and System.out or Gogo provides any API to
> > help achieve that ?  any tip or docs ?
>
> Gogo provides access to the keyboard and console through the
> CommandSession (will be injected automatically if your method defines
> such an argument), but these methods are basically returning
> System.in/out. Apart from that, you need to do everything else
> yourself if you want to interact with the user.
>
> Hope this helps,
>
> - --
> Met vriendelijke groeten | Kind regards
>
> Jan Willem Janssen | Software Architect
> +31 631 765 814
>
> /My world is revolving around INAETICS and Amdatu/
>
> Luminis Technologies B.V.
> Churchillplein 1
> 7314 BZ   Apeldoorn
> +31 88 586 46 00
>
> http://www.luminis-technologies.com
> http://www.luminis.eu
>
> KvK (CoC) 09 16 28 93
> BTW (VAT) NL8169.78.566.B.01
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBAgAGBQJUefMyAAoJEKF/mP2eHDc46bAP+gJ9XxAYvsUOeYg/zdfcTxT0
> rT7B72P7lekee4oPG7GaniV/3llulVUcEwps7H7EnpM4gWQBk9/rL1dEGjcAe2bG
> c7ZYfN897hUqvZQm8LuvMrW+AZ6KFWrjMd0TMhfobSKC5ct8m/e9Jl9TarF4n+Ux
> tp2zpmCyKu/PJExvwxmBR+Qye9Arec7RDSZayMg0O/GyfRyuAFxk+ZmK8BiI33Kq
> Wi0DiX3TYEGAVE61EDp7SQro5H75CjPrk/0BJZh+x9e+/T6PEdQQGVsQRqsTl5af
> yANUceoj932DlsWAdiic17XhZ6L75GcyizUvK7AL4iZDvSj0NfxRcB00HkudnYfU
> fOCo9ane1ln6IIu9L/7AxVfOCzuk5sminyy/E9Uas17oaj+fLPfATpbvR7cQhG3p
> sxe27d7snb9M/hejy4O3kIZGOqZOvgtLYzcvLEx3iSxcc1V7LzRi1ypeDoUx7Wrx
> Dq9fC9OivRVtefxGK+0fOj35y5DWXX9qSSlBGaNQ/CA1I1Z46rVMmrppvm3tM6Am
> ScghtIaQhEXDCINpxpTssPO+7aLBMsxWR+r2jGbO3qOJCZZbrUT+t2rmiLLrgbTy
> EOZUFjXSVPMAo6fVau8C8oeB2MyqmLAU76V0/qr4S3ApUn7fk0QZZaUIx3r9m8qu
> r1WY43b8+gjwngEfB3nU
> =vjgc
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


-- 
"Tudo vale a pena se a alma não é pequena..."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message