A minimal Python CLI that checks whether common DevOps tools are available on your system.
Built as my personal completion of the DEV Community GitHub Finish-Up-A-Thon challenge prompt.
- Python
- Git
- Docker
- Terraform
- AWS CLI
Run:
python3 env_check.pyExample output:
Environment Check
--------------------------------
Python ✓ installed
Git ✓ installed
Docker ✗ not found
Terraform ✗ not found
AWS CLI ✗ not found
--------------------------------
2/5 tools available
The initial version was a small unfinished script that only checked Python and Git with basic output.
The finished version adds:
- Five DevOps tool checks
- Reusable command detection
- Clear formatted output
- Installation summary
- Type annotations
- Documentation
GitHub Copilot was used to review the completed CLI and suggest a small readability improvement.
Copilot recommended adding type annotations to the main functions:
def is_installed(command: str) -> bool:and:
def main() -> None:This improved code clarity without changing the program's behavior or adding dependencies.
Inspired by the DEV Community GitHub Finish-Up-A-Thon challenge prompt.