Run uvs on the specified Python script(s) to inject or update PEP 723 inline dependency metadata.
If $ARGUMENTS is empty, look for .py files in the current directory that are likely standalone scripts (not part of a package) and ask the user which ones to process.
Steps:
- •Check that
uvs.pyis available — either in the current directory, on PATH, or installed. If not found, tell the user to install it first (see README). - •Run:
uv run uvs.py $ARGUMENTS(oruvs $ARGUMENTSif installed on PATH) - •Show the output to the user.
- •If the script was updated, remind the user they can now run it with
uv run <script.py>.
If the user passes --dry-run, add that flag so no files are modified.