From 363d03a718588a3b73dbfb52bbba9cc6ccb0e379 Mon Sep 17 00:00:00 2001 From: sokripon Date: Sun, 18 May 2025 14:33:02 +0200 Subject: [PATCH] Update uv usage to use uvx --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b1b79ce..e9e802b 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ The script includes inline dependencies, so you can run it directly with uv: # Install uv if you haven't already curl -LsSf https://astral.sh/uv/install.sh | sh -# Run the script directly (no virtual environment needed) -uv run token_counter.py +# Downloads and runs the script +uvx --from codebase-token-counter token-counter ``` ### Using pip @@ -51,8 +51,8 @@ You can use the script to analyze both local directories and remote Git reposito ```bash # Using uv (recommended) -uv run token_counter.py https://github.com/username/repo -uv run token_counter.py . +uvx --from codebase-token-counter token-counter https://github.com/username/repo +uvx --from codebase-token-counter token-counter . # Using traditional python python token_counter.py https://github.com/username/repo