generation starts working again
This commit is contained in:
@@ -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)!
|
||||
|
||||
Reference in New Issue
Block a user