Optimize CLI implementation using Cobra framework#3
Merged
Conversation
- Migrate from manual flag parsing to Cobra CLI framework - Add professional help system with examples - Implement verbose mode flag for detailed logging - Enhance error messages with emoji indicators - Improve Makefile with better help and targets - Update README with comprehensive CLI documentation - Add CHANGELOG documenting improvements Inspired by official longbridge-terminal best practices Co-authored-by: JetSquirrel <20291255+JetSquirrel@users.noreply.github.com> Agent-Logs-Url: https://github.com/JetSquirrel/longbridge-fs/sessions/21d82b82-8305-44e4-b54b-9ec94b57cc13
JetSquirrel
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhancement Plan: Comprehensive OpenAPI Integration
Based on the official longbridge-terminal implementation, here's a plan to enrich the longbridge-fs project with additional features while maintaining the file-system paradigm:
Phase 1: Authentication & Configuration (High Priority)
checkcommand for API connectivity testingPhase 2: Enhanced Quote Commands (High Priority)
quotecommand for real-time quotes of multiple symbolsdepthcommand for order book depthstaticcommand for security static informationklinecommand for historical candlestick datatradescommand for recent tick dataintradaycommand for minute-by-minute dataPhase 3: Trading Enhancement (Medium Priority)
orderscommand to list and filter orderspositionscommand to view current positionsbalancecommand to check account balanceexecutionscommand to view trade historyPhase 4: Advanced Features (Medium Priority)
option-chain,option-quote)warrant-list,warrant-quote)capital-flow,capital-dist)Phase 5: Information & News (Low Priority)
news,news-detail)filings,filing-detail)Phase 6: Output Format Enhancement (High Priority)
--format jsonflag support across all commandsPhase 7: File-System Integration
Implementation Approach
Benefits