diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-22 17:49:09 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-21 13:30:51 -0300 |
commit | 2bb3cf05f8baad504ab70e1e03a6b7b83a16fd0e (patch) | |
tree | 051f77101aa5aaba2bd6038f52a463dc45fc7efd /src | |
parent | 1fe02563c6bda4ea00bd3fff191d6ab6bbf5978e (diff) | |
download | luarocks-2bb3cf05f8baad504ab70e1e03a6b7b83a16fd0e.tar.gz luarocks-2bb3cf05f8baad504ab70e1e03a6b7b83a16fd0e.tar.bz2 luarocks-2bb3cf05f8baad504ab70e1e03a6b7b83a16fd0e.zip |
Teal: add type definition module luarocks.core.cfg
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/core/cfg.d.tl | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/src/luarocks/core/cfg.d.tl b/src/luarocks/core/cfg.d.tl new file mode 100644 index 00000000..e3305580 --- /dev/null +++ b/src/luarocks/core/cfg.d.tl | |||
@@ -0,0 +1,120 @@ | |||
1 | local type Rockspec = require("luarocks.core.types.rockspec").Rockspec | ||
2 | |||
3 | local type Tree = require("luarocks.core.types.tree").Tree | ||
4 | |||
5 | local record cfg | ||
6 | detect_sysconfdir: function(): string | ||
7 | make_platforms: function(system: string): {any: boolean} | ||
8 | make_defaults: function(lua_version: string, target_cpu: string, platforms: {any: any}, home: string): {any: any} | ||
9 | use_defaults: function(cfg, defaults: {any: any}) | ||
10 | root_dir: string | Tree | ||
11 | rocks_dir: string | ||
12 | rocks_subdir: string | ||
13 | lua_modules_path: string | ||
14 | lib_modules_path: string | ||
15 | aggressive_cache: boolean | ||
16 | rocks_trees: {string| Tree} | ||
17 | lua_version: string | ||
18 | deps_mode: string | ||
19 | deploy_bin_dir: string | ||
20 | deploy_lua_dir: string | ||
21 | deploy_lib_dir: string | ||
22 | lib_extension: string | ||
23 | local_cache: string | ||
24 | only_sources_from: string | ||
25 | |||
26 | record cache | ||
27 | luajit_version_checked: boolean | ||
28 | luajit_version: string | ||
29 | rocks_provided: {string: string} --? right type? infered from src/luarocks/util | ||
30 | end | ||
31 | |||
32 | variables: {string: string} | ||
33 | rocks_provided: {Rockspec} | ||
34 | -- persist | ||
35 | home: string | ||
36 | -- queries | ||
37 | arch: string | ||
38 | -- api | ||
39 | record conf | ||
40 | file: string | ||
41 | found: boolean | ||
42 | end | ||
43 | |||
44 | record config_files | ||
45 | system: conf | ||
46 | user: conf | ||
47 | project: conf | ||
48 | end | ||
49 | -- type_check | ||
50 | accept_unknown_fields: boolean | ||
51 | -- api | ||
52 | user_agent: string | ||
53 | connection_timeout: number | ||
54 | record upload | ||
55 | server: string | ||
56 | version: string | ||
57 | tool_version: string | ||
58 | api_version: string | ||
59 | end | ||
60 | -- loader | ||
61 | init: function(?{string : string}, ?function(string)): boolean, string, string | ||
62 | init_package_paths: function() | ||
63 | -- rockspecs | ||
64 | each_platform: function(?string): (function():string) | ||
65 | -- fetch | ||
66 | rocks_servers: {{string} | string} | ||
67 | -- search | ||
68 | disabled_servers: {string: boolean} | ||
69 | -- deps | ||
70 | is_platform: function(string): boolean | ||
71 | print_platforms: function(): string | ||
72 | external_deps_patterns: {string: string} | ||
73 | external_deps_subdirs: {string: string} | ||
74 | runtime_external_deps_patterns: {string: string} | ||
75 | runtime_external_deps_subdirs: {string: string} | ||
76 | external_lib_extension: string | ||
77 | external_deps_dirs: {string} | ||
78 | -- repos | ||
79 | hooks_enabled: boolean | ||
80 | wrap_bin_scripts: boolean | ||
81 | wrapper_suffix: string | ||
82 | -- writer | ||
83 | no_manifest: boolean | ||
84 | accepted_build_types: {string} | ||
85 | -- builtin | ||
86 | gcc_rpath: boolean | ||
87 | link_lua_explicitly: boolean | ||
88 | obj_extension: string | ||
89 | -- cmake | ||
90 | cmake_generator: string | ||
91 | target_cpu: string | ||
92 | -- make | ||
93 | makefile: string | ||
94 | make: string | ||
95 | -- cmd | ||
96 | local_by_default: boolean | ||
97 | fs_use_modules: boolean | ||
98 | is_binary: boolean | ||
99 | program_version: string | ||
100 | homeconfdir: string | ||
101 | sysconfdir: string | ||
102 | luajit_version: string | ||
103 | lua_found: boolean | ||
104 | project_dir: string | ||
105 | verbose: boolean | ||
106 | project_tree: string | ||
107 | -- cmd make | ||
108 | keep_other_versions: boolean | ||
109 | -- cmd path | ||
110 | package_paths: function(string | Tree): string, string, string | ||
111 | export_path_separator: string | ||
112 | -- admin cache | ||
113 | upload_server: string | ||
114 | upload_servers: {string: {string: string}} | ||
115 | -- admin add | ||
116 | upload_user: string | ||
117 | upload_password: string | ||
118 | end | ||
119 | |||
120 | return cfg \ No newline at end of file | ||