Introduces bin/kibana-keystore providing create, list, add, and remove actions. Settings stored within the keystore will be loaded at runtime. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
30 lines
462 B
Batchfile
30 lines
462 B
Batchfile
@echo off
|
|
|
|
SETLOCAL
|
|
|
|
set SCRIPT_DIR=%~dp0
|
|
for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI
|
|
|
|
set NODE=%DIR%\node\node.exe
|
|
|
|
WHERE /Q node
|
|
IF %ERRORLEVEL% EQU 0 (
|
|
for /f "delims=" %%i in ('WHERE node') do set SYS_NODE=%%i
|
|
)
|
|
|
|
If Not Exist "%NODE%" (
|
|
IF Exist "%SYS_NODE%" (
|
|
set "NODE=%SYS_NODE%"
|
|
) else (
|
|
Echo unable to find usable node.js executable.
|
|
Exit /B 1
|
|
)
|
|
)
|
|
|
|
TITLE Kibana Keystore
|
|
"%NODE%" "%DIR%\src\cli_keystore" %*
|
|
|
|
:finally
|
|
|
|
ENDLOCAL
|