vimscriptでterraform fmt checkをかける
内容
-
system()
で外部コマンドを呼び出すことができる expand("%:p")は開いているファイルのフルパスを取得する
function! TFfmt()
let result = system('terraform fmt -no-color -diff -check '. expand("%:p"))
echo result
endfunction
実行
Author And Source
この問題について(vimscriptでterraform fmt checkをかける), 我々は、より多くの情報をここで見つけました https://qiita.com/yuta_vamdemic/items/e61eb6b2bb91512c711f著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .