3 ms·
I can understand why people would find `ut` convenient. That said, I would caution against trying to include too much functionality. What is too much? I don't h
by xpe 1y ago
I can understand why people would find `ut` convenient. That said, I would caution against trying to include too much functionality. What is too much? I don't have a clear idea on this yet.
But I would probably argue that including HTTP functionality is going too far. Why? Because there are already amazing tools dedicated to this already. On the client side, see `xh` [1]. On the server side, see `miniserve` [2]. Both have approximately 7K stars on GitHub.
It seems wiser to let specialized projects focus on a particular functional area; this is better for users and less work for maintainers.
[1]: https://github.com/ducaale/xh https://github.com/ducaale/xh
[2]: https://github.com/svenstaro/miniserve https://github.com/svenstaro/miniserve
- ndyg 1y agoI maintain a Rust-based CLI HTTP server that embeds Nushell. It’s a handy little Swiss-army knife that’s replaced Nginx and Caddy for my personal projects. You can serve a folder of static assets like this: http-nu :3021 '{|req| .static "www" $req.path}' https://github.com/cablehead/http-nu https://github.com/cablehead/http-nu
- Jotalea 1y agoI agree. this tool feels like an all-in-one swiss knife. granted, it is useful. But it goes directly against one of the UNIX core values which is "do one thing and do it well". as well, including too much functionality in one single package will eventually bloat it, and there are many examples of this happening (windows, systemd, etc.).
- dtj1123 1y agoI feel that the applicability of the "do one thing and do it well" philosophy scales with the frequency with which you expect to do that thing and the complexity of the task. In the case of a text editor or a VCS it obviously makes sense. In the case of tools that I use a couple times a year like these, having them all grouped together under a 'misc' application is exactly what I need in order to waste time fumbling through my installed apps trying to remember where I left the QR code generator.
- efskap 1y agoI see this more like `busybox`, where being a single binary is an implementation detail. The commands are still orthogonal and composable.