Compare commits

...

2 Commits

View File

@ -293,18 +293,18 @@
;; (format "%s#%s" test-class method)))) ;; (format "%s#%s" test-class method))))
(list :command-name "test this method" (list :command-name "test this method"
:command-line (format "mvn test -DfailIfNoTests=false -Dtest=%s" test-method) :command-line (format "mvn test -DfailIfNoTests=false -Dtest=%s" test-method)
:working-dir local-pom-dir))))) :working-dir local-pom-dir))))
(if (s-equals? local-pom-dir project-dir) (if (s-equals? local-pom-dir project-dir)
commands commands
(-concat commands (-concat commands
(-map (lambda (cmd) (-map (lambda (cmd)
(when cmd (when cmd
(-> (-copy cmd) (-> (-copy cmd)
(plist-put :command-name (plist-put :command-name
(format "%s (root POM)" (format "%s (root POM)"
(plist-get cmd :command-name))) (plist-get cmd :command-name)))
(plist-put :working-dir project-dir)))) (plist-put :working-dir project-dir))))
commands)))) commands)))))
(defun get-cargo-commands (dir) (defun get-cargo-commands (dir)
(when (executable-find "cargo") (when (executable-find "cargo")
@ -451,11 +451,13 @@
(let* ((project (projectile-project-root)) (let* ((project (projectile-project-root))
(project-name (f-filename project))) (project-name (f-filename project)))
(append (when (equal project-name "hummingbird-rails") (append (when (equal project-name "hummingbird-rails")
(list (->> (f-files (f-join project "workbench" "bin"))
(list :command-name "workbench start" (-filter (lambda (f) (not (s-starts-with? "_" (f-base f)))))
:command-line "./workbench/bin/start" (-map (lambda (f)
:working-dir project (list :command-name (format "workbench %s" (f-base f))
:runner 'run-command-runner-vterm)))))) :command-line f
:working-dir project
:runner 'run-command-runner-vterm))))))))
:general :general
(leader-map "\"" #'run-command) (leader-map "\"" #'run-command)