Commit Graph

7 Commits

Author SHA1 Message Date
sHa
81af25e22f services detection upd 2025-11-17 23:49:31 +02:00
sHa
5262d042f8 Refactor: Enhance container image management with intelligent auto-discovery and multi-architecture support 2025-09-28 19:22:40 +03:00
sHa
38cca103b1 Refactor: Enhance auto-discovery logic for Dockerfiles and Containerfiles in build operations 2025-09-28 16:10:47 +03:00
sHa
d3fec4b85a 🚀 MAJOR: Full migration to Just modules with modern features
BREAKING CHANGES:
- Complete restructure to Just module architecture (requires Just 1.31.0+)
- Command syntax changed: 'just postgres-sql' → 'just postgres sql'
- Import syntax changed: import → mod declarations

NEW FEATURES:
 Module-based architecture with optional modules
 Built-in Just colors ({{RED}}, {{GREEN}}, etc.) replace custom variables
 Enhanced [confirm] attributes for all destructive operations
 Organized [group('name')] attributes for better UX
 Modern justfile with comprehensive help system
 Updated documentation with migration guide

MODULES:
📦 postgres/    - PostgreSQL operations (sql, check, create-database, etc.)
📦 mysql/       - MySQL operations (sql, check, create-user, etc.)
📦 volumes/     - Volume management (clean-all, remove, list)
📦 container/   - Container operations (start, stop, logs, shell, exec)
📦 registry/    - Registry auth (login, logout, check)
📦 images/      - Image operations (build, push, pull, tag, clean)

USAGE:
just postgres sql "SELECT version();"
just volumes clean-all
just images build myapp

This is Just Commons v2.0 - a complete modernization using all of Just's latest features.
2025-09-27 02:27:53 +03:00
sHa
5fd0e0370c Fix group attribute syntax: use correct [group('name')] format
- Change all [group: 'name'] to [group('name')] per Just documentation
- Ensures compatibility with Just 1.21.0 and resolves 'Unknown attribute group' error
- Affects all just-commons files: container, volumes, postgres, mysql, images, registry, core
2025-09-27 01:15:35 +03:00
sHa
80cefd02dd Add group annotations for container, database, and volume management operations 2025-09-27 00:44:58 +03:00
sHa
897093f744 Refactor: Add core.just and fix universal structure
- Add core.just with common utilities:
  - _detect_runtime: Detect Docker/Podman
  - _detect_compose: Detect compose command
  - env-check: Environment validation
- Fix container.just to be fully universal (remove servass-specific code)
- Move _detect_runtime from images.just to core.just
- Update container.just to use proper universal operations

Universal structure now:
- core.just: Common utilities
- container.just: Universal container operations
- registry.just: Registry authentication
- images.just: Universal image operations
2025-09-26 21:23:45 +03:00