Package dev.agenor.tools.cli.commands
Class BaseCommand
java.lang.Object
dev.agenor.tools.cli.commands.BaseCommand
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ConfigCommand,HealthCommand,ListCommand,LogsCommand,StartCommand,StatusCommand,StopCommand
Base command providing common API client functionality.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static final HttpClientprotected static final com.fasterxml.jackson.databind.ObjectMapperprotected TableFormatterprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonNodeprotected com.fasterxml.jackson.databind.JsonNodeprotected com.fasterxml.jackson.databind.JsonNodeextractData(com.fasterxml.jackson.databind.JsonNode response) Extract data field from API response wrapper.protected Stringprotected booleanprotected voidprintError(String message) protected voidprintSuccess(String message)
-
Field Details
-
apiUrl
-
verbose
protected boolean verbose -
mapper
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper -
httpClient
-
table
-
-
Constructor Details
-
BaseCommand
public BaseCommand()
-
-
Method Details