jabkit subcommands that read a single file.
The file can be supplied either as a positional argument
(jabkit check integrity references.bib) or via the --input option
(jabkit check integrity --input references.bib). The positional form is the preferred,
idiomatic style; --input is retained as a backward-compatible alias.
Exactly one of the two forms must be given; picocli enforces this at parse time via the
required, mutually exclusive ArgGroup.
Both forms also accept an http://, https://, or ftp:// URL, which is downloaded to a
local temporary file before being used as the input, and a PostgreSQL connection URL such as
postgresql://user:secret@host:5432/library, whose shared library is exported to a temporary
.bib file before being used as the input (read-only).
See ADR-0057 (which supersedes ADR-0045) and ADR-0065 for the rationale.
| Modifier and Type | Class and Description |
|---|---|
| private static class | InputOption.
|
| Modifier and Type | Field and Description |
|---|---|
| private InputOption. | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Path | getInputFile(CliPreferences preferences)
Returns: the resolved input file, downloading it to a temporary file first if a URL was supplied |
| private static boolean | isPostgreSqlUrl(String input)
|
| private static Path | |
| pack-priv static Path | Returns: the resolved input file, downloading it to a temporary file first if a URL was suppliedResolves a single input argument to a local file: a URL is downloaded to a temporary file, anything else is taken as a (possibly Cygwin-style) local path. |
| inputSource | back to summary |
|---|---|
private InputOption.
| |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| InputOption | back to summary |
|---|---|
| pack-priv InputOption() | |
| getInputFile | back to summary |
|---|---|
pack-priv Path getInputFile(CliPreferences preferences) throws ImportServiceException
| |
| isPostgreSqlUrl | back to summary |
|---|---|
| private static boolean isPostgreSqlUrl(String input)
| |
| pullSharedDatabase | back to summary |
|---|---|
| private static Path pullSharedDatabase(DBMSConnectionUrl connectionUrl, CliPreferences preferences) throws ImportServiceException | |
| resolveInput | back to summary |
|---|---|
| pack-priv static Path resolveInput(String input, CliPreferences preferences) throws ImportServiceException Resolves a single input argument to a local file: a URL is downloaded to a temporary file, anything else is taken as a (possibly Cygwin-style) local path. Commands reading more than one input cannot use this mixin — its
| |
--input is a backward-compatible alias here; the positional form and the alias both come from
ADR 57, which superseded the --input-only ADR 45.
| Access | Constructor and Description |
|---|---|
| private |
| optionInput | back to summary |
|---|---|
private String optionInput
| |
| positionalInput | back to summary |
|---|---|
private String positionalInput
| |
| InputSource | back to summary |
|---|---|
| private InputSource() | |