Skip to content

Commit de120e9

Browse files
author
Test User
committed
Phase 1: Architecture Setup
- Created new directory structure (tui/, context/, wizard/, integration/, migration/) - Created package structure (theme/, logger/, animations/, tools/) - Implemented theme system with consistent styling - Updated config system to support YAML format with backward compatibility - Updated state management to use new .doplan/ location - Added dashboard JSON generator for machine-readable dashboard - Moved UI files to TUI structure - Created context detection and project analysis - Created migration system (detector, backup, config, folders, migrator) - Created IDE integration setup - Updated all imports and references - All code compiles successfully
1 parent 47d3808 commit de120e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+9832
-96
lines changed

Makefile.v0.0.18

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Makefile for DoPlan v0.0.18-beta Development
2+
3+
.PHONY: help setup test test-unit test-integration clean validate migrate deps benchmark
4+
5+
help: ## Show this help message
6+
@echo "DoPlan v0.0.18-beta Development Commands"
7+
@echo ""
8+
@echo "Usage: make [target]"
9+
@echo ""
10+
@echo "Targets:"
11+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}'
12+
13+
setup: ## Set up test environment
14+
@./scripts/setup-test-env.sh
15+
16+
test: ## Run all tests
17+
@./scripts/run-all-tests.sh
18+
19+
test-unit: ## Run unit tests only
20+
@go test ./internal/... -v
21+
22+
test-integration: ## Run integration tests
23+
@./scripts/test-migration.sh
24+
@./scripts/test-ide-integration.sh
25+
26+
clean: ## Clean test environment
27+
@./scripts/clean-test-env.sh
28+
29+
validate: ## Validate migration
30+
@./scripts/validate-migration.sh
31+
32+
migrate: ## Run interactive migration
33+
@echo "Migration wizard will be implemented in TUI"
34+
35+
deps: ## Check dependencies
36+
@./scripts/check-dependencies.sh
37+
38+
benchmark: ## Run performance benchmarks
39+
@go test -bench=. ./internal/... -benchmem
40+
41+
backup: ## Backup test projects
42+
@./scripts/backup-test-projects.sh
43+
44+
restore: ## Restore test projects (usage: make restore TIMESTAMP=20240115-103000)
45+
@if [ -z "$(TIMESTAMP)" ]; then \
46+
echo "Usage: make restore TIMESTAMP=20240115-103000"; \
47+
exit 1; \
48+
fi
49+
@./scripts/restore-test-projects.sh $(TIMESTAMP)
50+
51+
build: ## Build DoPlan CLI
52+
@go build -o bin/doplan ./cmd/doplan
53+
54+
install: ## Install DoPlan CLI
55+
@go install ./cmd/doplan
56+
57+
fmt: ## Format code
58+
@go fmt ./...
59+
60+
lint: ## Run linter
61+
@golangci-lint run ./...
62+

cmd/doplan/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66

77
"github.com/DoPlan-dev/CLI/internal/commands"
8-
"github.com/DoPlan-dev/CLI/internal/ui"
8+
"github.com/DoPlan-dev/CLI/internal/tui"
99
"github.com/spf13/cobra"
1010
)
1111

@@ -40,7 +40,7 @@ Combines Spec-Kit and BMAD-METHOD methodologies.`,
4040

4141
// Check for TUI mode
4242
if len(os.Args) > 1 && os.Args[1] == "--tui" {
43-
if err := ui.Run(); err != nil {
43+
if err := tui.Run(); err != nil {
4444
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
4545
os.Exit(1)
4646
}
@@ -49,7 +49,7 @@ Combines Spec-Kit and BMAD-METHOD methodologies.`,
4949

5050
// Check flag value if parsed
5151
if tuiFlag != nil && *tuiFlag {
52-
if err := ui.Run(); err != nil {
52+
if err := tui.Run(); err != nil {
5353
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
5454
os.Exit(1)
5555
}

0 commit comments

Comments
 (0)