Skip to content
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

add ffi constructor to CommandLineApp #444

Closed
wants to merge 1 commit into from

Conversation

sp1ritCS
Copy link

@sp1ritCS sp1ritCS commented Oct 8, 2021

Good evening,
I've created tabula-java bindings for Rust:
tabula-rs forge & tabula on crates.io

However, as I'm using JNI rather than shelling out java, I need some way of constructing the CommandLineApp object. This patch adds a constructor with more primitive (array instead of List) parameters that allow creating CommandLineApp programmatically (ik. this "technically" isn't a "CommandLine Application" anymore 🙃).

I also needed the CSVWriter to write newlines as LF, as at least the test files you provide are also ending with LF (otherwise my tests fail).

It's been years since years since I have last written Java, but I don't think I made any major mistake :D (but if I did, please excuse me ;)).

Signed-off-by: Florian "sp1rit"​ sp1ritCS@protonmail.com

Signed-off-by: Florian "sp1rit"​ <sp1ritCS@protonmail.com>
@jeremybmerrill
Copy link
Member

@sp1ritCS and @chezou would this still be useful to you?

@chezou
Copy link
Contributor

chezou commented Feb 5, 2024

For me, I created a simple wrapper within tabula-py https://github.com/chezou/tabula-py/pull/356/files#diff-08b0ea7406259cdf36400759004168d0daf3dbbc73ff7944bbc834686a4ea244R103-R115

So, I don't need this change anymore.

@jazzido jazzido closed this Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants