uv/crates/puffin
Charlie Marsh aa3b79ec63
Prompt user for missing -r and -e flags in pip install (#1180)
## Summary

If the user runs a command like `pip install requirements.txt`, we now
prompt them to ask if they meant to include the `-r` flag:

![Screenshot 2024-01-29 at 8 38
29 PM](82b9f7a2-2526-4144-b200-a5015e5b8a4b)

![Screenshot 2024-01-29 at 8 38
33 PM](bd8ebb51-2537-4540-a0e0-718e66a1c69c)

The specific logic is: if the requirement ends in `.txt` or `.in`, and
the file exists locally, prompt the user for `-r`. If the requirement
contains a directory separator, and the directory exists locally, prompt
the user for `-e`.

Closes #1166.
2024-01-30 18:58:45 +00:00
..
src Prompt user for missing -r and -e flags in pip install (#1180) 2024-01-30 18:58:45 +00:00
tests Cleanup puffin interpreter errors (#1169) 2024-01-30 10:52:46 +01:00
Cargo.toml Prompt user for missing -r and -e flags in pip install (#1180) 2024-01-30 18:58:45 +00:00