generation starts working again

This commit is contained in:
2024-12-25 19:32:53 +01:00
parent 7bbeee570e
commit eff6338f71
9 changed files with 110 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ fp.skip_executable()
mut path := fp.string('path', `p`, "", 'Path where to generate a module, if not mentioned will scan over all installers & clients.\nif . then will be path we are on.')
reset := fp.bool('reset', `r`, false, 'If we want to reset')
interactive := fp.bool('interactive', `i`, true, 'If we want to work interactive')
scan := fp.bool('scan', `s`, false, 'If we want to scan')
help_requested := fp.bool('help', `h`, false, 'Show help message')
if help_requested {
@@ -36,11 +37,13 @@ if additional_args.len > 0 {
// interactive bool //if we want to ask
// path string
if path.trim_space() == "." {
path = os.getwd()
path = os.getwd()
}
if path {
if ! scan {
generator.do(path:path, reset:reset, interactive:interactive)!
}else{
generator.scan(path:path, reset:reset, interactive:interactive)!