Pass through optional-disabled on CF import (fixes #93)

This commit is contained in:
comp500
2022-03-07 18:22:29 +00:00
parent 7c387f6c83
commit 3fb350f244
5 changed files with 22 additions and 10 deletions

View File

@@ -215,7 +215,7 @@ var installCmd = &cobra.Command{
ansNormal := strings.ToLower(strings.TrimSpace(answer))
if !(len(ansNormal) > 0 && ansNormal[0] == 'n') {
for _, v := range depsInstallable {
err = createModFile(v.modInfo, v.fileInfo, &index)
err = createModFile(v.modInfo, v.fileInfo, &index, false)
if err != nil {
fmt.Println(err)
os.Exit(1)
@@ -229,7 +229,7 @@ var installCmd = &cobra.Command{
}
}
err = createModFile(modInfoData, fileInfoData, &index)
err = createModFile(modInfoData, fileInfoData, &index, false)
if err != nil {
fmt.Println(err)
os.Exit(1)