diff ci/if_ver-cmd.vim @ 19161:27ff44268da5 v8.2.0140

patch 8.2.0140: CI does not test building doc tags Commit: https://github.com/vim/vim/commit/2387773d933bd6c483e44803db8ec79737ecf7ed Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 21 22:13:42 2020 +0100 patch 8.2.0140: CI does not test building doc tags Problem: CI does not test building doc tags. Solution: Add the vimtags/gcc build. Cleanup showing version. (Ozaki Kiichi, closes #5513)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Jan 2020 22:15:04 +0100
parents
children
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/ci/if_ver-cmd.vim
@@ -0,0 +1,12 @@
+" Provide 'PrintVer' command to print the interface versions.
+
+func s:print_ver(lang, ...)
+  if has(a:lang)
+    exec a:lang join(a:000)
+  else
+    echo 'N/A'
+  endif
+  echo ''
+endfunc
+
+command -nargs=+ PrintVer call <SID>print_ver(<f-args>)