|
|
|
|
|
by PufPufPuf
356 days ago
|
|
Sadly hashbangs are technically limited to:
1) Support only absolute paths, making it necessary to use /usr/bin/env which is in standardized location to look up the uv binary
2) Support only a single argument (everything after the space is passed as a single arg, it's not parsed into multiple args like a shell would), making it necessary to use -S to "S"plit the arguments. It's a feature of env itself, for this very use case. So there isn't really much to do to make it simpler. |
|
Or maybe create a second binary or symlink called `uvs` (short for uv script) that does the same thing.