File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
metafacture-flux/src/main/java/org/metafacture/flux Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 19
19
import org .metafacture .commons .ResourceUtil ;
20
20
import org .metafacture .commons .reflection .ConfigurableClass ;
21
21
import org .metafacture .commons .reflection .ObjectFactory ;
22
+ import org .metafacture .flux .parser .FluxProgramm ;
22
23
import org .metafacture .framework .MetafactureException ;
23
24
import org .metafacture .framework .annotations .Description ;
24
25
import org .metafacture .framework .annotations .In ;
43
44
* @author Markus Michael Geipel
44
45
*/
45
46
public final class HelpPrinter {
47
+
46
48
private HelpPrinter () {
47
49
// no instances
48
50
}
49
51
52
+ public static void main (final String [] args ) {
53
+ FluxProgramm .printHelp (System .out );
54
+ }
55
+
50
56
/**
51
57
* Prints Flux help for a given ObjectFactory. Excerpts setters and their
52
58
* arguments, {@code @in} annotations and {@code @out} annotations.
Original file line number Diff line number Diff line change @@ -158,3 +158,8 @@ tasks.signArchives {
158
158
}
159
159
}
160
160
}
161
+
162
+ task(' fluxCommands' , type : JavaExec , description : ' Print available Flux commands' ) {
163
+ classpath = sourceSets. main. runtimeClasspath
164
+ main = ' org.metafacture.flux.HelpPrinter'
165
+ }
You can’t perform that action at this time.
0 commit comments