Class: Makit::Cli::SetupProjectCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Makit::Cli::SetupProjectCommand
- Defined in:
- lib/makit/cli/project_commands.rb
Overview
Setup project dependencies and configuration
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/makit/cli/project_commands.rb', line 681 def execute project_path = File.(path) unless Dir.exist?(project_path) puts "Error: Directory does not exist: #{project_path}" exit 1 end project_type = detect_project_type(project_path) if project_type == "unknown" puts "Error: Could not detect project type in: #{project_path}" exit 1 end puts "Setting up #{project_type} project dependencies..." Dir.chdir(project_path) do setup_project(project_type) end puts "✅ Project setup completed successfully" end |