Skip to content

Commit 3a16c1c

Browse files
jr-minnaartheskumar
authored andcommitted
Allow quote mode to be specified in get_cli_string (theskumar#48)
1 parent 2a87fc7 commit 3a16c1c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dotenv/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@ def unset(ctx, key):
7272
exit(1)
7373

7474

75-
def get_cli_string(path=None, action=None, key=None, value=None):
75+
def get_cli_string(path=None, action=None, key=None, value=None, quote=None):
7676
"""Returns a string suitable for running as a shell script.
7777
7878
Useful for converting a arguments passed to a fabric task
7979
to be passed to a `local` or `run` command.
8080
"""
8181
command = ['dotenv']
82+
if quote:
83+
command.append('-q %s' % quote)
8284
if path:
8385
command.append('-f %s' % path)
8486
if action:

0 commit comments

Comments
 (0)