Skip to content

Install automation#49

Merged
erichs merged 4 commits intomainfrom
42-install-automation
Dec 22, 2025
Merged

Install automation#49
erichs merged 4 commits intomainfrom
42-install-automation

Conversation

@erichs
Copy link
Owner

@erichs erichs commented Dec 22, 2025

Closes #42.

Copilot AI review requested due to automatic review settings December 22, 2025 02:38
@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 91.65275% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.50%. Comparing base (b6d8aa1) to head (7ee86f3).

Files with missing lines Patch % Lines
src/install/install.go 87.50% 10 Missing and 5 partials ⚠️
src/install/agent.go 92.98% 8 Missing and 4 partials ⚠️
src/install/shell.go 93.44% 5 Missing and 7 partials ⚠️
src/main.go 0.00% 11 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   86.74%   87.50%   +0.75%     
==========================================
  Files          54       60       +6     
  Lines        3441     4040     +599     
==========================================
+ Hits         2985     3535     +550     
- Misses        326      358      +32     
- Partials      130      147      +17     
Flag Coverage Δ
unittests 87.50% <91.65%> (+0.75%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements automated installation for dashlights, adding support for shell prompt integration (bash, zsh, fish, Powerlevel10k) and AI agent hooks (Claude, Cursor). The installer features automatic shell detection, backup creation, idempotency, dry-run mode, and interactive confirmations.

Key changes:

  • Added new install package with comprehensive filesystem abstraction, backup management, and installation logic
  • Integrated install modes into main CLI via --installprompt and --installagent flags
  • Included extensive unit tests with mock filesystem support and Docker-based integration tests

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/main.go Adds install mode entry points and CLI argument handling
src/install/filesystem.go Provides filesystem abstraction with OS and mock implementations for testability
src/install/backup.go Implements backup creation with timestamp support for multiple backups
src/install/shell.go Handles shell detection, config path resolution, and prompt template installation
src/install/agent.go Manages AI agent hook installation with JSON merging for Claude and Cursor
src/install/install.go Orchestrates installation flow with interactive confirmations and dry-run support
src/install/templates.go Defines shell prompt and agent hook templates
src/install/*_test.go Comprehensive test coverage with 2500+ lines of unit tests
scripts/dockerized-install-test.sh End-to-end integration tests in Docker container
README.md Simplified installation instructions using new installer
docs/agentic_mode.md Updated with automated installation commands
Makefile Added docker-install-test target and integrated into release process

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@erichs erichs merged commit 784e6ff into main Dec 22, 2025
5 checks passed
@erichs erichs deleted the 42-install-automation branch December 22, 2025 02:51
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.

Automate install process

2 participants

Comments