-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add command workflow list
#8
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
Conversation
WalkthroughA new "workflow" feature was introduced to the CLI, enabling users to list compliance workflows. This includes new type definitions, API client logic, CLI command handlers, test coverage, and mock fixtures. The changes are additive and modular, affecting the CLI interface, backend API interaction, and automated tests. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant CLICommands
participant APIClient
participant API
User->>CLI: workflow list
CLI->>CLICommands: printWorkflows()
CLICommands->>APIClient: getAllWorkflows()
APIClient->>API: GET /api/v1/workflow
API-->>APIClient: [WorkflowItem, ...]
APIClient-->>CLICommands: Workflow list
CLICommands-->>CLI: CommandResult (messages, success)
CLI-->>User: Output workflows or error message
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code Graph Analysis (5)src/__tests__/fixtures.ts (1)
src/api-client.ts (1)
src/cli-commands.ts (2)
src/index.ts (2)
src/__tests__/cli-commands.test.ts (3)
🔇 Additional comments (16)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
workflow list
Related #1
Summary by CodeRabbit