-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathcli.rbs
57 lines (45 loc) · 1.51 KB
/
cli.rbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
module RubyWasm
class CLI
type cli_options = {
print_ruby_cache_key: bool,
save_temps: bool,
output: String,
optimize: bool,
remake: bool,
reconfigure: bool,
clean: bool,
ruby_version: String,
target_triplet: String,
profile: String,
stdlib: bool,
without_stdlib_components: Array[String],
disable_gems: bool,
gemfile: String?,
patches: Array[String],
format: String,
dest_dir: String,
}
DEFAULT_RUBIES_DIR: string
@stdout: IO
@stderr: IO
def initialize: (stdout: IO, stderr: IO) -> void
def run: (Array[String] args) -> void
def build: (Array[String] args) -> void
def do_build_with_force_ruby_platform: (cli_options options) -> void
def pack: (Array[String] args) -> void
private
def build_config: (cli_options options) -> Packager::build_config
def compute_build_source: (cli_options options) -> [Packager::build_source, String?]
def self.build_source_aliases: (string root) -> Hash[string, Packager::build_source]
def self.bundled_patches_path: () -> string
def root: () -> string
def derive_packager: (cli_options options) -> Packager
def do_print_ruby_cache_key: (Packager) -> void
def do_build: (BuildExecutor, string tmpdir, Packager, cli_options options) -> void
def require_extension: () -> void
end
self.@logger: Logger?
def self.logger: () -> Logger
def self.logger=: (Logger) -> void
attr_accessor self.log_level: Symbol
end