Add all workbench scripts to hummingbird run-command recipe
This commit is contained in:
parent
7db3ff89f9
commit
911b009ee9
@ -451,11 +451,13 @@
|
||||
(let* ((project (projectile-project-root))
|
||||
(project-name (f-filename project)))
|
||||
(append (when (equal project-name "hummingbird-rails")
|
||||
(list
|
||||
(list :command-name "workbench start"
|
||||
:command-line "./workbench/bin/start"
|
||||
:working-dir project
|
||||
:runner 'run-command-runner-vterm))))))
|
||||
(->> (f-files (f-join project "workbench" "bin"))
|
||||
(-filter (lambda (f) (not (s-starts-with? "_" (f-base f)))))
|
||||
(-map (lambda (f)
|
||||
(list :command-name (format "workbench %s" (f-base f))
|
||||
:command-line f
|
||||
:working-dir project
|
||||
:runner 'run-command-runner-vterm))))))))
|
||||
|
||||
:general
|
||||
(leader-map "\"" #'run-command)
|
||||
|
Loading…
Reference in New Issue
Block a user