From 0845a9b7c3e0097b43a399f9e02365b58a4a262a Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Fri, 12 Jun 2020 16:34:19 +1000 Subject: [PATCH] tools: update gen_vc init method --- cmd/tools/gen_vc.v | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/tools/gen_vc.v b/cmd/tools/gen_vc.v index 63c21f1693..ebde8b5b6a 100644 --- a/cmd/tools/gen_vc.v +++ b/cmd/tools/gen_vc.v @@ -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()