rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
For source documents we want the full list so that users can be sure they have set up src-dir, includes and excludes correct. We only limit translation docs previews. 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-client" <zanata-client@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Friday, July 18, 2014 1:48:55 PM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/main/java/org/zanata/client/commands/init/SourceConfigPrompt.java:
> > +        console.printfln(Hint, _("excludes.question"));
> > +        console.printfln(_("excludes.usage"));
> > +        console.printf(Question, _("excludes.prompt"));
> > +        excludes = console.expectAnyAnswer();
> > +
> > +        pushOptions.setSrcDir(srcDir);
> > +        pushOptions.setIncludes(includes);
> > +        pushOptions.setExcludes(excludes);
> > +        docNames = findDocNames();
> > +        if (docNames.isEmpty()) {
> > +            console.printfln(_("no.source.doc.found"));
> > +        } else {
> > +            console.printfln(_("found.source.docs"));
> > +            for (String docName : docNames) {
> > +                console.printfln("           %s", docName);
> > +            }

> Please limit this to the first 10 documents, either here or where the list of
> doc names is generated.

> —
> Reply to this email directly or view it on GitHub .