add link commands for auto-reauthentiaction to oidc-prompt on MacOS
@@ -81,20 +81,19 @@ function pash {
}
function _escape_newline {
- IFS=$'\n' texts=($text)
- printf "${texts[0]}"
- for t in "${texts[@]:1}"; do
- printf "%s%s" "[return]" "$t"
- done
+ text=${text//$'\n'/[return]}
}
+_escape_newline
+
+
function password {
conf="
*.title="$title"
*.floating=1
*.autoclosetime="$timeout"
tx.type=text
- tx.default="$(_escape_newline)"
+ tx.default="$text"
pw.type=password
pw.label="$label"
pw.default="$init"
@@ -243,3 +242,28 @@ function multiple {
fi
exit $cb
}
+
+function simple_link_QR {
+ conf="
+ *.title="$title"
+ *.floating=1
+ *.autoclosetime="$timeout"
+ txt.type=text
+ txt.default="$text"
+ img.type=image
+ img.path="$init"
+ "
+ pash
+}
+
+
+function complex_link {
+ conf="
+ *.title="$title"
+ *.floating=1
+ *.autoclosetime="$timeout"
+ txt.type=text
+ txt.default="$text"
+ "
+ pash
+}
