mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add sorbet installer
This commit is contained in:
18
installer/install-sorbet.cmd
Normal file
18
installer/install-sorbet.cmd
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
|
||||
echo @echo off ^
|
||||
|
||||
setlocal ^
|
||||
|
||||
set TARGET_DIR=%%1 ^
|
||||
|
||||
shift ^
|
||||
|
||||
cd %%TARGET_DIR%% ^
|
||||
|
||||
bundle exec srb typecheck %%* ^
|
||||
|
||||
> sorbet.cmd
|
||||
|
||||
echo Install Done.
|
||||
echo **You need add sorbet dependencies in Gemfile.**
|
||||
17
installer/install-sorbet.sh
Executable file
17
installer/install-sorbet.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cat <<EOF >sorbet
|
||||
#!/bin/sh
|
||||
|
||||
TARGET_DIR=\$1
|
||||
shift
|
||||
cd \${TARGET_DIR}
|
||||
bundle exec srb typecheck \$*
|
||||
EOF
|
||||
|
||||
chmod +x sorbet
|
||||
|
||||
echo 'Install Done.'
|
||||
echo '**You need add sorbet dependencies in Gemfile.**'
|
||||
Reference in New Issue
Block a user