33 ms·
Ask HN: Favorite cross platform lang/framework for command line apps?
- holografix 7y agoOclif https://github.com/oclif/oclif https://github.com/oclif/oclif Disclaimer: I work for Heroku but have no association with the development of this tool.
- eterps 7y agoThanks haven't heard of this one before.
- Foober223 7y agocommand line? C/C++. Compiling separately for each environment is the best kind of cross platform for the end user.
- stephenr 7y agoShell. I’m keen to try D too, just need to find a project where I have enough time to learn without holding up something important.
- verdverm 7y agoCobra / Viper in Golang, also goreleaser
- karmakaze 7y agoOT: I wouldn't generally call command line tools or utilities apps.
- fucking_tragedy 7y agoApp is late 2010s for any kind of program that runs on a computer.
- fucking_tragedy 7y agoPython 3 + click[1]. [1] https://click.palletsprojects.com/en/7.x/ https://click.palletsprojects.com/en/7.x/
- deleted 7y ago[deleted]
- syspro 7y agoC, C++, Rust? For C++ you have Poco, Folly etc. There are tons of frameworks in C++ out there that will help you write command line apps.
- Jugurtha 7y agoLanguage: Python Library: Click
- sethammons 7y agoI don't use a framework, but Go. Set an environment variable to get a binary for a different platform. Ex: I code on a Mac. 'go build' makes a binary. If I want a Linux executable: 'GOOS=linux go build'. Just as easy for Windows.