jaykay12 commented on PR #4739:
URL: https://github.com/apache/solr/pull/4739#issuecomment-5968819011

   ## AI Generated High Level changes:
   
   ```mermaid
   flowchart TB
     subgraph user [User]
       CLI["bin/solr package …"]
     end
   
     CLI --> SOLRCLI[SolrCLI]
     SOLRCLI --> FLAG{picocli flag?}
   
     FLAG -->|no: commons-cli| PT_CLI[PackageTool.runImpl]
     PT_CLI --> EXEC[executePackage<br/>logger OFF + resolve via CLIUtils]
     EXEC --> SWITCH[handleCommand switch]
     SWITCH --> HELPERS
   
     FLAG -->|yes: picocli| PT_PICO[PackageTool parent]
     PT_PICO --> SUB{subcommand}
   
     SUB --> AddRepo
     SUB --> AddKey
     SUB --> ListInstalled
     SUB --> ListAvailable
     SUB --> ListDeployed
     SUB --> Install
     SUB --> Deploy
     SUB --> Undeploy
     SUB --> Uninstall
     SUB -.->|bare package| USAGE[print usage + notes a/b]
   
     AddRepo & AddKey & ListInstalled & ListAvailable & ListDeployed & Install 
& Deploy & Undeploy & Uninstall --> PSC[PackageSubCommand.runWithManagers]
     PSC --> RWM[PackageTool.runWithManagers<br/>logger OFF]
     RWM --> CONN[ConnectionOptions.resolveSolrUrl / resolveZkHost<br/>flags, 
then SOLR_CONNECTION / ZK_HOST]
     CONN --> HELPERS[shared helpers:<br/>addRepo, install, deploy, …]
   
     HELPERS --> PM[PackageManager / RepositoryManager]
   ```
   
   
   ```mermaid
   flowchart LR
     subgraph before [Before this PR]
       B1["one PackageTool"]
       B2["cmd + ARGS catch-all"]
       B3["hand-written switch"]
       B1 --> B2 --> B3
     end
   
     subgraph after [After]
       A1["PackageTool parent"]
       A2["9 picocli leaves"]
       A3["shared helpers + ConnectionOptions"]
       A1 --> A2 --> A3
     end
   
     before --> after
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to