Skip to content

Commit da67cce

Browse files
committed
Add phpactor-config:dump command
1 parent 1cf0064 commit da67cce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

phpactor.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@
114114
(setq phpactor-history-ring (make-ring phpactor-history-size)))
115115
(ring-insert phpactor-history-ring (cons name entry)))
116116

117+
(defun phpactor-config:dump ()
118+
"Execute Phpactor `config:dump' sub command."
119+
(interactive)
120+
(let ((default-directory (phpactor-get-working-dir)))
121+
(funcall
122+
(if (called-interactively-p 'interactive)
123+
#'shell-command
124+
#'shell-command-to-string)
125+
(phpactor--make-command-string "config:dump"))))
117126

118127
;; Phpactor RPC
119128
(defun phpactor--rpc (action arguments)

0 commit comments

Comments
 (0)