Files
TimeTracker/scripts/version-manager.ps1
Dries Peeters 8a378b7078 feat(clients,license,db): add client management, enhanced DB init, and tests
- Clients: add model, routes, and templates
  - app/models/client.py
  - app/routes/clients.py
  - templates/clients/{create,edit,list,view}.html
  - docs/CLIENT_MANAGEMENT_README.md
- Database: add enhanced init/verify scripts, migrations, and docs
  - docker/{init-database-enhanced.py,start-enhanced.py,verify-database.py}
  - docs/ENHANCED_DATABASE_STARTUP.md
  - migrations/{add_analytics_column.sql,add_analytics_setting.py,migrate_to_client_model.py}
- Scripts: add version manager and docker network test helpers
  - scripts/version-manager.{bat,ps1,py,sh}
  - scripts/test-docker-network.{bat,sh}
  - docs/VERSION_MANAGEMENT.md
- UI: tweak base stylesheet
  - app/static/base.css
- Tests: add client system test
  - test_client_system.py
2025-09-01 11:34:45 +02:00

48 lines
1.4 KiB
PowerShell

# Version Manager for TimeTracker - PowerShell Wrapper
param(
[Parameter(Position=0)]
[string]$Action,
[Parameter(Position=1)]
[string]$Version,
[Parameter(Position=2)]
[string]$Message,
[int]$BuildNumber,
[switch]$NoPush,
[string]$Tag
)
if (-not $Action) {
Write-Host "Usage: .\version-manager.ps1 [action] [options]"
Write-Host ""
Write-Host "Actions:"
Write-Host " tag [version] [message] - Create a version tag"
Write-Host " build [number] - Create a build tag"
Write-Host " list - List all tags"
Write-Host " info [tag] - Show tag information"
Write-Host " status - Show current status"
Write-Host " suggest - Suggest next version"
Write-Host ""
Write-Host "Examples:"
Write-Host " .\version-manager.ps1 tag v1.2.3 'Release 1.2.3'"
Write-Host " .\version-manager.ps1 build 123"
Write-Host " .\version-manager.ps1 status"
Write-Host ""
exit 1
}
# Build arguments for Python script
$args = @($Action)
if ($Version) { $args += "--version", $Version }
if ($Message) { $args += "--message", $Message }
if ($BuildNumber) { $args += "--build-number", $BuildNumber }
if ($NoPush) { $args += "--no-push" }
if ($Tag) { $args += "--tag", $Tag }
# Run the Python script
python scripts/version-manager.py @args