Skip to content

Commit

Permalink
Support phpactor--action-input-parameters multiple input
Browse files Browse the repository at this point in the history
refs #141
  • Loading branch information
zonuexe committed Jan 9, 2020
1 parent b69f2d9 commit 8bbc0f1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,18 @@ have to ensure a compatible version of phpactor is used."
(update_file_source . phpactor-action-update-file-source)))

;; Helper functions:
(cl-defun phpactor--action-input-parameters (value-type &key default label choices type)
(cl-defun phpactor--action-input-parameters (value-type &key default label choices type multi)
"Request user input by parameters."
(if multi
(cl-loop for input = (phpactor--action-input-parameters-1
value-type default label choices type)
do (message "input \"%s\" %s" input (string= input ""))
until (string= input "")
collect input)
(phpactor--action-input-parameters-1 value-type default label choices type)))

(defun phpactor--action-input-parameters-1 (value-type default label choices type)
"Inner function of `phpactor--action-input-parameters'."
(let ((use-dialog-box nil)
(type (if type (intern type) value-type)))
(cl-case type
Expand Down

0 comments on commit 8bbc0f1

Please sign in to comment.