Improve migration and command output verbosity
Add migrate:commit reminder after successful migrations in dev mode Add --silent flag to rsx:clean and use in framework updates Add minimal README.md with clone instructions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ class Clean_Command extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'rsx:clean';
|
||||
protected $signature = 'rsx:clean {--silent : Suppress all output except errors}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
@@ -35,9 +35,11 @@ class Clean_Command extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$silent = $this->option('silent');
|
||||
|
||||
// Show warning if not in framework developer mode
|
||||
$is_framework_dev = config('rsx.code_quality.is_framework_developer', false);
|
||||
if (!$is_framework_dev) {
|
||||
if (!$is_framework_dev && !$silent) {
|
||||
$this->warn('⚠️ Running rsx:clean is rarely necessary');
|
||||
$this->line('');
|
||||
$this->line(' The manifest system automatically detects and rebuilds when files change.');
|
||||
@@ -52,8 +54,10 @@ class Clean_Command extends Command
|
||||
$this->newLine();
|
||||
}
|
||||
|
||||
$this->info('🧹 Cleaning RSX caches...');
|
||||
$this->newLine();
|
||||
if (!$silent) {
|
||||
$this->info('🧹 Cleaning RSX caches...');
|
||||
$this->newLine();
|
||||
}
|
||||
|
||||
$cleaned_items = [];
|
||||
|
||||
@@ -83,14 +87,16 @@ class Clean_Command extends Command
|
||||
// Note: We never clear rsx-locks directory as it contains active lock files
|
||||
|
||||
// Display results
|
||||
if (empty($cleaned_items)) {
|
||||
$this->info('Nothing to clean - all caches already empty');
|
||||
} else {
|
||||
foreach ($cleaned_items as $item) {
|
||||
$this->line(" $item");
|
||||
if (!$silent) {
|
||||
if (empty($cleaned_items)) {
|
||||
$this->info('Nothing to clean - all caches already empty');
|
||||
} else {
|
||||
foreach ($cleaned_items as $item) {
|
||||
$this->line(" $item");
|
||||
}
|
||||
$this->newLine();
|
||||
$this->info('✅ RSX caches cleaned successfully');
|
||||
}
|
||||
$this->newLine();
|
||||
$this->info('✅ RSX caches cleaned successfully');
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user