class Bindgen::Tool

Overview

Front-end tool class

Defined in:

bindgen/tool.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(root_path : String, config : Configuration, show_stats : Bool = false, config_path : String | Nil = nil) #

config_path is the file config was read from. If given, the configuration is read again after find_paths ran: the variables it found are environment variables then, so conditions can test them, like if_QT_VERSION_newer_or_6.6:.


[View source]

Instance Method Detail

def config : Configuration #

The configuration. Read again after find_paths ran, if config_path was given.


[View source]
def database : TypeDatabase #

[View source]
def root_path : String #

Path to the projects root, commonly the directory the YAML configuration file is contained in.


[View source]
def run! : Int32 #

Runs the tool. Returns the process exit code.


[View source]