Conversation
- Core architecture: Application, Command base class, ArgParser - Commands: help, version, doctor, render, transform, build, templates, packages, resolve - Core services: TemplateRunner, Filesystem, PackageInspector, DoctorService - Console utilities: ANSI colors, segments, progress, helpers - Multi-platform bin: div (Unix), div.bat (Windows) - Install scripts: install.sh, install.bat - Enhanced CLI output with colored segments and semantic messages
- composer.json: require divengine/div ^6.0
- DoctorService: detect divengine\div class correctly
- TemplateRunner: use fallback {{variable}} syntax as default
- Suppress deprecated warnings from div engine during rendering
- Add InputParser for JSON, YAML, XML, PHP input formats - Add stdin support for all render commands - Add PHAR build script with optimized vendor inclusion - Add release workflow for GitHub Actions - Add install scripts for Unix, Windows (PowerShell/CMD) - Update help text with examples and format documentation - Require PHP >= 8.1, divengine/div ^6.0
- Add PHPUnit workflow for running tests - Add PHPStan workflow for static analysis (level 4) - Configure branch protection on main: - Require Tests and PHPStan checks to pass - Require 1 approving review - Enforce for admins
- Add docs/ directory with: - README.md (overview) - 01. Installation.md - 02. Commands.md - 03. Input Formats.md - 04. Template Syntax.md - Add releases/ directory with v1.0.0.md notes - Add scripts/: - build_pdf.py: Generates PDF from markdown docs using pandoc - generate_release_notes.py: Template for release notes - Update release.yml workflow to: - Install Python and pandoc - Install LaTeX (texlive) - Build PDF documentation - Attach PDF to release assets
- Add --local flag to install scripts - Detect local source and build PHAR if needed - Update README with development install instructions Usage: php install --local # Build and install from local source php install # Download from GitHub releases
Usage: php install --from-here # Development (local) php install # Production (download)
- Delete TransformCommand.php (duplicate of render) - Remove from Application.php registration - Update README.md and docs/02.Commands.md - Now only render command exists for template rendering
- Delete DoctorCommand.php and DoctorService.php - Not needed: div CLI works standalone without divengine/div - Update README.md and docs
- Delete ResolveCommand.php and PackageInspector.php - Not needed: premature feature before package system exists - Update README.md and docs
- Filesystem::listTemplates() now filters by both .tpl and .div - Display extension in templates list output - Update docs
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.
Summary
Initial release of div CLI - Official runtime and package manager for the Divengine template ecosystem.
Commands
Input Formats
Features
Infrastructure
Checks
Installation
Development Install
git clone https://github.com/divengine/cli.git cd cli php install --from-hereRequirements
Documentation
See the docs/ directory for detailed documentation. Template syntax is documented in divengine/div.