Class Send
- java.lang.Object
-
- com.github.rvesse.airline.examples.sendit.Send
-
- All Implemented Interfaces:
ExampleRunnable
@Command(name="send", description="Sends a package") public class Send extends java.lang.Object implements ExampleRunnable
-
-
Field Summary
Fields Modifier and Type Field Description private PostalAddress
address
private Package
item
private PostalService
service
-
Constructor Summary
Constructors Constructor Description Send()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
int
run()
Runs the command and returns an exit code that the application should return
-
-
-
Field Detail
-
address
@AirlineModule private PostalAddress address
-
item
@AirlineModule private Package item
-
service
@Option(name={"-s","--service"}, title="Service", description="Specifies the postal service you would like to use") private PostalService service
-
-
Method Detail
-
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
-
main
public static void main(java.lang.String[] args)
-
-