We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f0e3e0 commit 98dd689Copy full SHA for 98dd689
1 file changed
src/dotenv/__init__.py
@@ -16,10 +16,12 @@ def get_cli_string(
16
value: Optional[str] = None,
17
quote: Optional[str] = None,
18
):
19
- """Returns a string suitable for running as a shell script.
+ """Return a command string for invoking the dotenv CLI.
20
21
- Useful for converting a arguments passed to a fabric task
22
- to be passed to a `local` or `run` command.
+ This helper is intended for simple command construction and display. It does
+ not shell-escape arbitrary input. If you pass the returned string to a shell,
23
+ quote or validate any user-controlled values first. Prefer passing arguments as
24
+ a list to subprocess APIs when possible.
25
"""
26
command = ["dotenv"]
27
if quote:
0 commit comments