General Tech

Once: Cache CLI Commands

Once is a command-line tool for running a command only once, even if it's executed multiple times. It uses a lock file to prevent concurrent execution. The tool is written in Go and has a simple, intuitive interface. It can be used to ensure that a command is only executed once, even if it's run multiple times in parallel. The code is available on GitHub at https://github.com/alex0ptr/once.

Read the full article at github.com →