#!/usr/bin/env ruby # frozen_string_literal: true # Add the language server into the load path $LOAD_PATH.unshift(File.join(__dir__, 'lib')) # Add the vendored gems into the load path $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'puppet-lint', 'lib')) $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'molinillo', 'lib')) $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'puppetfile-resolver', 'lib')) require 'puppet_languageserver' PuppetLanguageServer.init_puppet(PuppetLanguageServer::CommandLineParser.parse(ARGV)) PuppetLanguageServer.rpc_server(PuppetLanguageServer::CommandLineParser.parse(ARGV))