tools: update gen_vc init method

pull/5362/head
joe-conigliaro 2020-06-12 16:34:19 +10:00
parent 438adfc2be
commit 0845a9b7c3
1 changed files with 5 additions and 2 deletions

View File

@ -152,8 +152,7 @@ fn new_gen_vc(flag_options FlagOptions) &GenVC {
}
// WebhookServer init
pub fn (mut ws WebhookServer) init() {
pub fn (mut ws WebhookServer) init_once() {
mut fp := flag.new_flag_parser(os.args.clone())
flag_options := parse_flags(mut fp)
ws.gen_vc = new_gen_vc(flag_options)
@ -161,6 +160,10 @@ pub fn (mut ws WebhookServer) init() {
//ws.gen_vc = new_gen_vc(flag_options)
}
pub fn (mut ws WebhookServer) init() {
//ws.init_once()
}
// gen webhook
pub fn (mut ws WebhookServer) genhook() {
ws.gen_vc.generate()