class AmberLSP::Lookup::RunLookupCommand

Defined in:

amber_lsp/lookup/lookup_command.cr

Constant Summary

USAGE = "Usage: amber-lsp lookup QUERY [--root DIR] [--json] [--verify]\n amber-lsp lookup --at FILE:LINE:COL [--root DIR] [--json] [--verify]\n\nLooks up a Crystal API in the project, its shards in lib/, and the standard library.\nQUERY is Type.method (class method), Type#method (instance method), or Type.\n\n --root DIR project root (default: the current directory)\n --at LOC look up the call at FILE:LINE:COL instead of a QUERY\n --json print the answer as JSON\n --verify compile a probe when the answer is unknown, to confirm the return type\n\nExit codes: 0 found, 3 several candidates, 4 unknown, 5 absent, 2 failed."

Constructors

Instance Method Summary

Constructor Detail

def self.new(arguments : Array(String), cache_root : String = APIIndexCache.default_root, compiler_command : String = Lookup.default_compiler_command, stdout : IO = STDOUT, stderr : IO = STDERR) #

[View source]

Instance Method Detail

def perform : Int32 #

[View source]