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
Enhance golo golo command to support folders and specific module
--files parse folders to load golo files
--module is added to specify a Module name for the main function
this command is valid
$ golo golo --files samples/ --module hello.World
Hello World!
$
And
- shell completion updated with --module
- documentation for this enhancement
- some samples have a new module name (to avoid duplication in classpath)
A bash script can be found in `share/shell-completion/` called `golo-bash-completion` that will provide autocomplete support for the `golo` and `vanilla-golo` CLI scripts. You may either `source` the script, or drop the script into your `bash_completion.d/` folder and restart your terminal.
178
181
179
-
TIP: Not sure where your `bash_completion.d/` folder is? Try `/etc/bash_completion.d/` on Linux or `/usr/local/etc/bash_completion.d/` for Mac Homebrew users.
182
+
TIP: Not sure where your `bash_completion.d/` folder is? Try `/etc/bash_completion.d/` on Linux or `/usr/local/etc/bash_completion.d/` for Mac Homebrew users.
180
183
181
184
=== Zsh autocompletion ===
182
185
@@ -515,4 +518,3 @@ You can of course take advantage of the `array` collection literal, too:
Copy file name to clipboardExpand all lines: src/main/java/fr/insalyon/citi/golo/cli/Main.java
+37-11
Original file line number
Diff line number
Diff line change
@@ -85,9 +85,12 @@ static class RunCommand {
85
85
@Parameters(commandDescription = "Dynamically loads and runs from Golo source files")
86
86
staticclassGoloGoloCommand {
87
87
88
-
@Parameter(names = "--files", variableArity = true, description = "Golo source files (the last one has a main function)", required = true)
88
+
@Parameter(names = "--files", variableArity = true, description = "Golo source files (the last one has a main function or use --module)", required = true)
89
89
List<String> files = newLinkedList<>();
90
90
91
+
@Parameter(names = "--module", description = "The Golo module with a main function")
0 commit comments