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
Changed to let them retry 

----- 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 12:59:08 PM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/main/java/org/zanata/client/commands/init/ProjectPrompt.java:
> > +    ProjectPrompt(Interactiveable interactiveable, InitOptions opts,
> > +            ZanataProxyFactory proxyFactory,
> > +            ProjectIterationPrompt projectIterationPrompt) {
> > +        this.interactiveable = interactiveable;
> > +        this.opts = opts;
> > +        this.proxyFactory = proxyFactory;
> > +        this.projectIterationPrompt = projectIterationPrompt;
> > +    }
> > +
> > +    /**
> > +     * Select or create a project and version.
> > +     * If creating, also ask for Project type.
> > +     */
> > +    public void selectOrCreateNewProjectAndVersion() {
> > +        interactiveable.printf(Question, _("project.select.or.create"));
> > +        String answer = interactiveable.expectAnswer("1", "2");

> Will this terminate the command if someone accidentally types something else?

> —
> Reply to this email directly or view it on GitHub .