-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide conditional local file based input/output parameters for CLI usage similar to the Canonical GTFS Validator #136
Comments
Hello @esuomi and welcome!
To summarize, the proposal is:
Finally, @esuomi do you or anyone else have the resources to write the code for this feature? Thank you very much for this contribution! |
I have no concerns about renaming the parameters; I suggest having a deprecation path in case there are consumers who already use the current names. |
Hi again! So, I finally had a bit of time to come back to this and take an actual look into the codebase and related functionality just to get an idea of how difficult it would be to implement this. While I'm not a JavaScript developer so I can't promise I'd personally contribute this feature, from what I can tell, the crux of this functionality is in gbfs.js#L374-L424. This also might make it a bit more difficult to implement this, as the URL-to-file resolving happens inside the GBFS validation logic? I also briefly checked Anyway, I think a bit of agreement should first to be had on how this should be implemented, and there's still a possibility that while I personally wouldn't contribute this, we have our other team member who's more versed in JS/TS who maybe would be able to implement this. This is still not a hard promise though, wonders of bureaucracy and project planning do have their impact on such realities :) |
Hi @esuomi,
You are right; the resolution of the files is tied to the validation logic(not ideal). I suggest implementing the changes in two phases/PRs.
Currently, our hands are full with other priorities. If necessary, we can get into a call to support you and your team if you find spare time to work on this issue. Your taking the time to review the code and contribute means a lot to us. |
Hi, hello!
To keep this short: The current CLI implementation takes as an input parameter an URL (
-u
,--url
) and set the location of its generated report with parameter-s
,--save-report
. This works, but has two issues:-i
/--input
and-o
/--output
. Symmetry is unsurprising, easy to predict and aesthetically pleasing :-)The text was updated successfully, but these errors were encountered: