Class CheckPostcodes
java.lang.Object
com.github.rvesse.airline.examples.sendit.CheckPostcodes
- All Implemented Interfaces:
ExampleRunnable
@Command(name="check-postcodes",
description="Checks whether postcodes are valid")
public class CheckPostcodes
extends Object
implements ExampleRunnable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
run()
Runs the command and returns an exit code that the application should return
-
Field Details
-
postCodes
@Arguments(title="PostCode", description="Specifies one/more postcodes to validate") public List<String> postCodes
-
-
Constructor Details
-
CheckPostcodes
public CheckPostcodes()
-
-
Method Details
-
run
public int run()Description copied from interface:ExampleRunnable
Runs the command and returns an exit code that the application should return- Specified by:
run
in interfaceExampleRunnable
- Returns:
- Exit code
-