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()