18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/hind/cli.rb', line 18
def lsif
validate_directory(options[:directory])
validate_output_file(options[:output], options[:force])
files = find_files(options[:directory], options[:glob], options[:exclude])
abort "No files found matching pattern '#{options[:glob]}'" if files.empty?
say "Found #{files.length} files to process", :green if options[:verbose]
begin
generate_lsif(files, options)
say "\nLSIF data has been written to: #{options[:output]}", :green if options[:verbose]
rescue => e
handle_error(e, options[:verbose])
end
end
|