Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/dotenv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ def get_cli_string(
value: Optional[str] = None,
quote: Optional[str] = None,
):
"""Returns a string suitable for running as a shell script.
"""Return a command string for invoking the dotenv CLI.

Useful for converting a arguments passed to a fabric task
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,
quote or validate any user-controlled values first. Prefer passing arguments as
a list to subprocess APIs when possible.
"""
command = ["dotenv"]
if quote:
Expand Down
Loading