tools: update gen_vc init method
parent
438adfc2be
commit
0845a9b7c3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue