You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"Cannot create project in non empty directory \(path)\n"
40
+
return"Cannot create project in non empty directory: \(path)\n".f.red
41
+
33
42
case.failedCreatingFolder(let path):
34
-
return"Failed creating directory \(path)"
43
+
return"Failed creating directory \(path)".f.red
44
+
35
45
case.cannotCreateFile (let name):
36
-
return"Cannot generate \(name) file"
46
+
return"Cannot generate \(name) file".f.red
47
+
37
48
case.cannotReadFile(let path):
38
-
return"Cannot read contents of file \(path)"
49
+
return"Cannot read contents of file \(path)".f.red
50
+
39
51
case.setupFileAltered:
40
-
return"Guaka setup.swift file has been altered.\nThe placeholder used to insert commands cannot be found \(GeneratorParts.comamndAddingPlaceholder).\nYou can try to add it yourself by updating `setup.swift` to look like\n\n\(GeneratorParts.setupFileContent())\n\nAdding command wont be possible."
52
+
return"Guaka setup.swift file has been altered.\nThe placeholder used to insert commands cannot be found \(GeneratorParts.comamndAddingPlaceholder).\nYou can try to add it yourself by updating `setup.swift` to look like\n\n\(GeneratorParts.setupFileContent())\n\nAdding command won't be possible.".f.red
53
+
41
54
case.notAGuakaProject:
42
-
return"This command can only be executed in a Guaka project.\nThe following directory does not contain guaka files"
55
+
return"This command can only be executed inside a Guaka project.".f.red
56
+
43
57
case.missingCommandName:
44
58
return[
45
-
"`guaka add` requires a command that was not given.",
59
+
"Missing CommandName for `guaka add`.".f.red,
60
+
"",
46
61
"Call `guaka add CommandName` to create a new command.",
0 commit comments