Skip to content

Feature: Add CLI list-templates Command Closes #31#62

Open
IvantheGreatMaker wants to merge 1 commit intocloudengine-labs:mainfrom
IvantheGreatMaker:main
Open

Feature: Add CLI list-templates Command Closes #31#62
IvantheGreatMaker wants to merge 1 commit intocloudengine-labs:mainfrom
IvantheGreatMaker:main

Conversation

@IvantheGreatMaker
Copy link
Copy Markdown

Adds new Feature: Add CLI list-templates Command #31

Description

Add a new list command to the CLI that displays all available scaffold templates organized by category. This enables users to discover available templates without consulting documentation.

Related Issue

Closes #31

Type of Change

  • 🐛 Bug fix
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change
  • 📚 Documentation update
  • 🔧 Refactor / code cleanup
  • 🧪 Test improvement

Changes Made

  • Added TEMPLATE_INFO dictionary to 8 scaffold modules for dynamic discovery
  • Added _collect_templates() helper function in devopsos.py
  • Added @app.command("list") command to display templates by category
  • Added tests for the new list command

Testing Done

  • Existing tests pass (python -m pytest cli/test_cli.py mcp_server/test_server.py tests/test_comprehensive.py -v)
  • New tests added to cover the changes
  • Manually tested: python -m cli.devopsos list

Checklist

  • My code follows the existing style and conventions
  • I have self-reviewed my code
  • My changes do not introduce new warnings or errors
  • I have linked the related issue above
  • All CI checks are passing

Adds new Feature: Add CLI list-templates Command cloudengine-labs#31
Copy link
Copy Markdown
Member

@chefgs chefgs left a comment

Choose a reason for hiding this comment

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

@IvantheGreatMaker
One suggestion is to add the new list command under the Quick Start Commands section in root README.md file.

# ── List templates ──────────────────────────────────────────────────────────
python -m cli.devopsos list  # → Displays list of available templates

@chefgs
Copy link
Copy Markdown
Member

chefgs commented Apr 15, 2026

Hello @IvantheGreatMaker - Thank you for picking up the issue and raising a PR.

Glad you have followed the PR template, which helped us to review the code quickly.

Please address the review comment, I've added in the code.

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.

Feature: Add CLI list-templates Command

2 participants