Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI cleanups #550

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from
Draft

CLI cleanups #550

wants to merge 2 commits into from

Conversation

arteymix
Copy link
Member

@arteymix arteymix commented Jan 25, 2023

  • introduce an abstract class for the batch-processing related logic
  • avoid overriding buildOptions and processOptions in AbstractCLI subclasses more than once

A few more things to look into:

  • tabular output for batch processing to report success/failures
  • use @Autowired to inject beans in CLI tools & remove getBean()
  • use typed options wherever possible

Reduce AbstractCLI to the bare minimum of providing authentication, help
and testing env support.

Move logic for batch processing in a new AbstractBatchProcessingCLI
subclass.

Use CommandLine.getParsedOptionValue() wherever possible.

Move CommandGroup, SUCCESS, FAILURE in CLI interface.
Supplying an unknown option already produces an error when parsing
arguments.
@arteymix arteymix added this to the 1.30.0 milestone Jan 25, 2023
@arteymix arteymix force-pushed the development branch 2 times, most recently from 79530fc to d612215 Compare January 26, 2023 20:05

if ( arrayDesign == null ) {
log.error( String.format( "No ArrayDesign found with name %s.", name ) );
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This log does not belong here.

@arteymix
Copy link
Member Author

@ppavlidis you mentioned the need for a tabular output, this can fit in here with the new AbstractBatchProcessingCLI class.

@ppavlidis
Copy link
Collaborator

@ppavlidis you mentioned the need for a tabular output, this can fit in here with the new AbstractBatchProcessingCLI class.

Ok I will probably look at that this week

@arteymix arteymix self-assigned this Apr 16, 2023
@arteymix arteymix removed this from the 1.31.0 milestone Oct 6, 2023
@arteymix arteymix force-pushed the development branch 2 times, most recently from 84692c7 to e0ec3da Compare December 4, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants