Class: Makit::Cli::CleanBuildCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Makit::Cli::CleanBuildCommand
- Defined in:
- lib/makit/cli/build_commands.rb
Overview
Clean build artifacts and temporary files
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/makit/cli/build_commands.rb', line 312 def execute project_type = detect_project_type(Dir.pwd) puts "Cleaning #{project_type} project artifacts..." puts "Deep clean: #{deep?}" if verbose? && deep? puts "Dry run: #{dry_run?}" if verbose? && dry_run? clean_common_artifacts clean_project_specific_artifacts(project_type) clean_dependencies if deep? if dry_run? puts "✅ Dry run completed - no files were actually removed" else puts "✅ Clean completed successfully" end end |