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 Argsfile Support #437

Open
XenoAmess opened this issue Jan 29, 2020 · 1 comment
Open

Add Argsfile Support #437

XenoAmess opened this issue Jan 29, 2020 · 1 comment

Comments

@XenoAmess
Copy link

command line is good but if there be config.json or something that will be better.
I'm trying to make a site to calculate statitics badge using tokei.
But I know nothing about rust and I wanna invoke tokei from commandline, and for safety I think it be better to invoke tokei with a json configuration file instead of too long raw commandline.
thx.

@XAMPPRocky
Copy link
Owner

XAMPPRocky commented Feb 14, 2020

@XenoAmess Thank you for your issue! You can provide some options through .tokeirc/tokeirc.toml, I believe there is such a thing as "argfiles" where you can say @args and it will pick up a file called args containing your arguments. Tokei uses a third party library for parsing the CLI (clap-rs), which doesn't support this. I would prefer the implementation for that feature remain outside of tokei, so I'll file an issue with them.

@XAMPPRocky XAMPPRocky changed the title please make tokei accept a json file as config.json or something Argfile Support Jun 27, 2020
@XAMPPRocky XAMPPRocky changed the title Argfile Support Argsfile Support Jun 27, 2020
@XAMPPRocky XAMPPRocky changed the title Argsfile Support Add Argsfile Support Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants