Add tf init and sops run-command recipes; switch to async-shell run method
This commit is contained in:
parent
511e5b56f8
commit
ce43480bb5
@ -6520,6 +6520,8 @@ current buffer:
|
||||
".tf"
|
||||
eol))
|
||||
(list
|
||||
(list :command-name "init"
|
||||
:command-line "terraform init")
|
||||
(list :command-name "plan"
|
||||
:command-line "terraform plan")
|
||||
(list :command-name "apply"
|
||||
@ -6647,11 +6649,19 @@ current buffer:
|
||||
:command-line "kustomize build --enable_alpha_plugins"
|
||||
:working-dir dir))))
|
||||
|
||||
(defun run-command-recipe-sops ()
|
||||
(when (save-excursion
|
||||
(goto-char (point-min))
|
||||
(search-forward-regexp "sops:" nil t))
|
||||
(list
|
||||
(list :command-name "edit"
|
||||
:command-line (format "sops %s" (buffer-file-name))))))
|
||||
|
||||
:general
|
||||
(leader-map "\"" #'run-command)
|
||||
(run-command-term-minor-mode-map [remap recompile] #'run-command-term-recompile)
|
||||
:custom
|
||||
(run-command-run-method 'term)
|
||||
(run-command-run-method 'async-shell)
|
||||
(run-command-recipes '(run-command-recipe-terraform
|
||||
run-command-recipe-local
|
||||
run-command-recipe-package-json
|
||||
@ -6660,7 +6670,8 @@ current buffer:
|
||||
run-command-recipe-project-local
|
||||
run-command-recipe-executables
|
||||
run-command-recipe-obelix
|
||||
run-command-recipe-kustomize)))
|
||||
run-command-recipe-kustomize
|
||||
run-command-recipe-sops)))
|
||||
#+end_src
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user