Skip to content

Conversation

@xaoscience
Copy link
Owner

📋 Description

This PR introduces a unified git-control.sh wrapper that consolidates access to all git-related workflow tools in Dev-Control. It also refactors inconsistent headers to use the shared print.sh library functions.

Key Changes:

  • New git-control.sh wrapper: Unified interface for git workflow tools with categorized menu structure
  • Header consistency: Replaced hard-coded box headers with print_header_success() from lib/print.sh
  • Menu reorganization: dev-control.sh menu now organized by categories
  • New alias: dc-git for quick access to the git services submenu

Consolidated Scripts:

The new git-control.sh provides unified access to:

  • template-loading.sh (dc-init)
  • create-repo.sh (dc-repo)
  • create-pr.sh (dc-pr)
  • fix-history.sh (dc-fix)
  • licenses.sh (dc-licenses)

🔄 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔧 Refactoring (no functional changes)
  • 🧪 Tests (adding or updating tests)

✅ Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have tested my changes locally

🧪 How Has This Been Tested?

# Test git-control.sh wrapper
./scripts/git-control.sh --help

# Test dev-control.sh menu
./scripts/dev-control.sh help

# Verify aliases
grep dc-git scripts/alias-loading.sh

⚠️ Breaking Changes

Menu option numbers in dev-control.sh have been renumbered to accommodate the new git-control option:

  • Option 2 is now "Git Services (dc-git)"
  • All subsequent options shifted by 1
  • Option 9 (Containerise) moved to option "c"

📝 Additional Notes

The git-control.sh wrapper follows the same pattern as dev-control.sh but focuses specifically on git-related workflows. Users can access it via:

  • dc-git alias (after running dc-aliases)
  • ./scripts/git-control.sh directly
  • dev-control.sh git command
  • Menu option 2 in dev-control interactive mode

- Create git-control.sh as unified interface for git workflow tools
- Consolidates access to: template-loading, create-repo, create-pr,
  fix-history, and licenses scripts
- Add categorized menu structure with Repository Setup, Collaboration,
  and Maintenance sections

Refactor headers to use print.sh library functions:
- Replace hard-coded box headers in fix-history.sh with print_header_success
- Replace hard-coded box headers in template-loading.sh with print_header_success

Update dev-control.sh:
- Add git-control as option 2 in reorganized menu
- Categorize menu items (Setup, Repository Management, Maintenance)
- Update help documentation with dc-git command
- Renumber menu options to accommodate git-control

Update alias-loading.sh:
- Add dc-git alias pointing to git-control.sh
- Update dc-help to include dc-git description

BREAKING: Menu option numbers in dev-control.sh have been renumbered
@xaoscience xaoscience merged commit 24ccee8 into Main Jan 22, 2026
1 of 2 checks passed
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
xaoscience added a commit that referenced this pull request Jan 22, 2026
feat: Add git-control.sh wrapper for unified git services
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.

1 participant