{"by":"kattouf","descendants":16,"id":40993900,"kids":[41004481,41009271,41002431,41008254,41015495,41004524,41044886],"score":31,"text":"A bit about me:\nOriginally, I&#x27;m an iOS developer, but over time, I became interested in CLI and DevEx, which ultimately led to the creation of my first CLI utility in Swift.<p>Project creation story:\nI enjoy interactive and functional command-line interfaces with good UX, which often includes beautifully displaying the progress of ongoing operations. I wanted the ability to show a nice progress status for any command or script, but at the time, I couldn&#x27;t find any solutions that suited my needs. Most community offerings are good libraries for specific programming languages. So, I decided this was the perfect moment to test my skills and Swift&#x27;s capabilities in writing CLI utilities.<p>In my opinion, Swift did an excellent job (although it doesn&#x27;t have as rich a set of relevant libraries as Rust, for example).<p>The main challenge turned out to be cross-platform support:<p>- Currently (Swift 5.10), Swift doesn&#x27;t support full cross-compilation, making it impossible to build a Linux version on macOS. However, this capability will be available in Swift 6! This limitation forced me to use Docker, slightly complicating the release flow.<p>- Unlike macOS, Linux doesn&#x27;t come with pre-installed Swift libraries (obviously), so they need to be embedded (statically linked) into the binary file, which significantly increases its size, even after stripping. I hope the strip process will become more efficient in the future.<p>Overall, I&#x27;m pleased with the result and would be thrilled if my small utility proves useful to others. :)","time":1721294735,"title":"Show HN: ProgressLine – Track commands progress in a compact one-line format","type":"story","url":"https://github.com/kattouf/ProgressLine"}