From 16c7c5d2e36752425418ac698402f4a51a01e44c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 29 Aug 2026 18:52:42 +0930 Subject: [PATCH] refactor: rename status debug commands to status: prefix Rename user:status, profile:status, and post:status console commands to status:user, status:profile, and status:post. Rename the command files and classes to match (StatusUser, StatusProfile, StatusPost) and update the cross-reference tip in StatusProfile. --- app/Console/Commands/{PostStatus.php => StatusPost.php} | 4 ++-- .../Commands/{ProfileStatus.php => StatusProfile.php} | 6 +++--- app/Console/Commands/{UserStatus.php => StatusUser.php} | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename app/Console/Commands/{PostStatus.php => StatusPost.php} (99%) rename app/Console/Commands/{ProfileStatus.php => StatusProfile.php} (98%) rename app/Console/Commands/{UserStatus.php => StatusUser.php} (99%) diff --git a/app/Console/Commands/PostStatus.php b/app/Console/Commands/StatusPost.php similarity index 99% rename from app/Console/Commands/PostStatus.php rename to app/Console/Commands/StatusPost.php index ddfce8164..f6cde4848 100644 --- a/app/Console/Commands/PostStatus.php +++ b/app/Console/Commands/StatusPost.php @@ -10,14 +10,14 @@ use Illuminate\Console\Command; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; -class PostStatus extends Command +class StatusPost extends Command { /** * The name and signature of the console command. * * @var string */ - protected $signature = 'post:status {id : Status id, or a post URL like https://host/p/username/ID}'; + protected $signature = 'status:post {id : Status id, or a post URL like https://host/p/username/ID}'; /** * The console command description. diff --git a/app/Console/Commands/ProfileStatus.php b/app/Console/Commands/StatusProfile.php similarity index 98% rename from app/Console/Commands/ProfileStatus.php rename to app/Console/Commands/StatusProfile.php index 9322678c3..fd224583e 100644 --- a/app/Console/Commands/ProfileStatus.php +++ b/app/Console/Commands/StatusProfile.php @@ -8,14 +8,14 @@ use App\Models\User; use Illuminate\Console\Command; use Illuminate\Support\Str; -class ProfileStatus extends Command +class StatusProfile extends Command { /** * The name and signature of the console command. * * @var string */ - protected $signature = 'profile:status {id : Profile id, username, user@domain, @user@domain, webfinger, or remote_url}'; + protected $signature = 'status:profile {id : Profile id, username, user@domain, @user@domain, webfinger, or remote_url}'; /** * The console command description. @@ -212,7 +212,7 @@ class ProfileStatus extends Command ['last_active_at', $this->format($user->last_active_at)], ]; $this->table(['User Field', 'Value'], $rows); - $this->comment('Tip: run `user:status '.$user->username.'` for full auth diagnostics.'); + $this->comment('Tip: run `status:user '.$user->username.'` for full auth diagnostics.'); } protected function dumpInstance(Profile $profile): void diff --git a/app/Console/Commands/UserStatus.php b/app/Console/Commands/StatusUser.php similarity index 99% rename from app/Console/Commands/UserStatus.php rename to app/Console/Commands/StatusUser.php index 96702463a..9615fb32c 100644 --- a/app/Console/Commands/UserStatus.php +++ b/app/Console/Commands/StatusUser.php @@ -9,14 +9,14 @@ use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; -class UserStatus extends Command +class StatusUser extends Command { /** * The name and signature of the console command. * * @var string */ - protected $signature = 'user:status {id : Username or numeric user id} + protected $signature = 'status:user {id : Username or numeric user id} {--logs=10 : Number of recent account log entries to show}'; /**