Skip to content

Add CLI support #156

@bbottema

Description

@bbottema

Simple Java Mail should Command Line Interface (CLI) support.

Considering the mantra that the builder API is the absolute single source of truth (including for documentation), CLI should be based on that. The CLI support should support all the API that require simple parameter values (String, ints, etc.) or values that can easily be converted (InetAddress is a no-go, but Email can be converted from EML string for example).

Considering the CLI should always reflect the builder API, it would be great if the CLI commands can be generated from the builder Java classes (using annotations).

Furthermore, the CLI support should support basic file/url handling. With the builder API that was the responsibility of the user (passing in DataSource instances for example, or byte arrays), but with the CLI that responsibility is moved back for basic support at least. This means the builder API needs to become even more robust than it is now, to accommodate CLI support comprehensively.

Solves #142.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions