-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvib.v
More file actions
27 lines (24 loc) · 724 Bytes
/
vib.v
File metadata and controls
27 lines (24 loc) · 724 Bytes
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
module main
import os
import appstoreconnect
fn main() {
if os.args.len < 2 || (!os.exists(os.args[1]) && (os.args[1] != 'provision' && os.args[1] != 'certificate')) {
println("Error: No binary provided. Usage: vib <path to binary>")
return
}
if os.args[1] == 'provision' {
connect_config := appstoreconnect.load_connect_config() or { panic(err) }
connect_config.provision_profile_wizard()
return
} else if os.args[1] == 'certificate' {
connect_config := appstoreconnect.load_connect_config() or { panic(err) }
connect_config.certificate_wizard()
return
}
config := config_from_file(os.args[1]) or {
println("Config parsing failed: $err.msg")
return
}
println(config)
config.create_bundle()
}