Zanata init command fails when specifying "file" project type

Description

Steps to reproduce:

1. Run "zanata init" on a new project
2. Answer the question "What is your project type (utf8properties, properties, gettext, podir, xliff, xml, file)?" with "file"
3. continue to answer all questions until the end of the command run
4. You will get the following error message: "execution failed: unknown project type: file"

Environment

None

Activity

Show:
Patrick Huang
February 24, 2016, 1:34 AM

It may not be a quick fix. The problem is file type push command is a separate class. I need to take this into account when trying to scan for source files (e.g. depending on project type, to use PushCommand or RawPushCommand. Also PullCommand or RawPullCommand)

Carlos Munoz
February 24, 2016, 1:37 AM

Could we for the time being not scan for source files in this case? I mean, file type is so generic that we might need to do something more sophisticated during 'init', but for now we could just avoid all that and at least not fail when creating such a project.

Patrick Huang
February 24, 2016, 4:36 AM

I've already fixed it so now it will work like other project types. But it requires an extra question to be answered (--file-types option). Because we don't store file-types in zanata.xml, so answering that question during init will only display/preview source and translation docs. They still need to give that option when doing actual pushing.

Carlos Munoz
February 24, 2016, 5:09 AM

Ok, since you went to the trouble of doing that, might as well tell them how they need to invoke it

Ding-Yi Chen
March 20, 2016, 11:48 PM

Jira seems to catch my pull request targeting release branch and reset to review.
I have re-verified it for release branch as well.

Assignee

Patrick Huang

Reporter

Carlos Munoz

Labels

None

Tested Version/s

None

Components

Sprint

None

Fix versions

Affects versions

Priority

unspecified
Configure