3 ms·
Thanks. Why is the notion of run and tool separate? Coming from JS, we have the package.json#scripts field and everything executes via a `pnpm run <script name>
by theogravity 2y ago
Thanks. Why is the notion of run and tool separate? Coming from JS, we have the package.json#scripts field and everything executes via a `pnpm run <script name>` command.
- BiteCode_dev 2y agoTool ? Maybe you mean uv tool install ? In that case it's something you don't need right now, uv tool is useful, but it's a bonus. It's to install 3rd party utilities outside of the project. There is no equivalent to script yets, althought they are adding it as we speak. uv run exec any command in the context of the venv (which is like a node_modules), you don't need to declare them prior to calling them. e.g: uv run python will start the python shell.
- theogravity 2y agoI was looking at https://docs.astral.sh/uv/concepts/tools/#the-uv-tool-interface https://docs.astral.sh/uv/concepts/tools/#the-uv-tool-interf... Edit: I get it now. It's like npm's `npx` command.
- BiteCode_dev 2y agouvx is the npx equivalent, it's provided with ux, and also has some nice bonuses.