-
Notifications
You must be signed in to change notification settings - Fork 9
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
Templated output for CSV #22
Comments
Hi @eblechschmidt, thanks for reaching out - I like your idea. I have to admit that I'm not that experienced in using go templates, so I find it hard to choose between those two options. It is not clear for me what either option would mean for the user of the CLI? In general, I would like to keep the CLI as simple as possible. If you think that adding this feature does not increase the complexity too much, feel free to open a PR! |
I would be very interested in such a feature. Option 1 sounds good to me! If you need someone for testing, let me know :) |
@onjen do you have go installed? Then you could clone https://github.com/eblechschmidt/go-comdirect and test it. So far I have just implemented it for the transaction command but will finalize it for the other commands as well soon. |
@jsattler I just created a pull request and checked the output for all commands to you version via e.g. One thing that is worth discussing that so far the length of go-comdirect/comdirect/cmd/transaction.go Lines 119 to 123 in f95a8a1
|
Hello Joshua,
thank you for this awesome tool. I would be interested to have a more flexible way of changeing the content of the CSV ouput (for e.g. adding the remittance info). Would you be interested in a PR using go template to format the output?
I could imaging two possbile solutions to this:
In this case I would embed a template file which keeps the current setup and I would add an additional flag for specifying a custom template file path.
In this case I would add two flags (one for the header and one for the row template) which would override the default formating.
Which of the solutions would you prefer? I don't really care.
Best regards
Eike
The text was updated successfully, but these errors were encountered: