Package hudson.cli.declarative
Annotation Type CLIMethod
-
@Indexed @Retention(RUNTIME) @Target(METHOD) @Documented public @interface CLIMethod
Annotates methods on model objects to expose them as CLI commands.You need to have
Messages.propertiesin the same package with theCLI.<i>command-name</i>.shortDescriptionkey to describe the command. This is used for the same purpose asCLICommand.getShortDescription().If you put a
CLIMethodon an instance method (as opposed to a static method), you need a corresponding CLI resolver method.A CLI method can have its parameters annotated with
OptionandArgument, to receive parameter/argument injections.A CLI method needs to be public.
- Since:
- 1.321
- Author:
- Kohsuke Kawaguchi
- See Also:
CLICommand
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanusesChannel
-
-
-
Element Detail
-
name
String name
CLI command name. Used asCLICommand.getName()
-
-