We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fd03b commit d1f93eaCopy full SHA for d1f93ea
docs/keyring.rst
@@ -78,3 +78,19 @@ You can also simply prompt for the password::
78
type = "caldav"
79
username = "myusername"
80
password.fetch = ["prompt", "Password for CalDAV"]
81
+
82
+Environment variable
83
+===============
84
85
+To read the password from an environment variable::
86
87
+ [storage foo]
88
+ type = "caldav"
89
+ username = "myusername"
90
+ password.fetch = ["command", "printenv", "DAV_PW"]
91
92
+This is especially handy if you use the same password multiple times
93
+(say, for a CardDAV and a CalDAV storage).
94
+On bash, you can read and export the password without printing::
95
96
+ read -s DAV_PW "DAV Password: " && export DAV_PW
0 commit comments