[zanata-devel] batch mode - mac
Patrick Huang
pahuang at redhat.com
Mon May 18 23:41:23 UTC 2015
Hi Luca,
In order to get the batch mode working in CLI client, you need to place the -B right after zanata-cli and before push command. Same goes with -e option to enable error trace and -X to enable debug logging. So it will be like:
zanata-cli -B push -l en --file-types "txt" --merge-type “auto"
merge type is auto by default so you can drop it if you want.
This behavior is a limitation of the library(args4j) we use. There are 2 bugs https://bugzilla.redhat.com/show_bug.cgi?id=1003444 https://bugzilla.redhat.com/show_bug.cgi?id=1030139 for this problem but since there is workaround available we haven't looked into it yet.
Patrick Huang
Senior Software Engineer
Engineering - Internationalisation
Red Hat
----- Original Message -----
> From: "Luca Perino" <iphoneyukh at gmail.com>
> To: zanata-devel at redhat.com
> Sent: Tuesday, May 19, 2015 1:43:33 AM
> Subject: [zanata-devel] batch mode - mac
> Hi,
> i want to push a file to server and i’m running the following command on a
> Mac Teminal
> > zanata-cli push -B -l en --file-types "txt" --merge-type “auto"
>
> After some time Zanata show me:
> > [INFO] Found source documents:
>
> > [INFO] Localizable.txt
>
> > This will overwrite existing documents on the server.
>
> > Are you sure (y/n)?
>
> asking me to enter y/n.
> I want to automatize the script and i can’t answer.
> I’ve set -B (also tried —batch-mode) but always, it prompts to me the
> questions.
> How can i disable the prompt?
> Any help?
> Thanks,
> Luca
> _______________________________________________
> zanata-devel mailing list
> zanata-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/zanata-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/zanata-devel/attachments/20150518/5c6a560d/attachment.htm>
More information about the zanata-devel
mailing list