1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
use clap::Subcommand;
#[derive(Debug, Subcommand)]
pub enum AnalyzeCommand {
/// List and analyze project backups
Backups {
/// Show detailed backup information
#[arg(long)]
detailed: bool,
},
/// List controllers and their handlers
Controllers {
/// Show specific controller details
#[arg(short, long)]
name: Option<String>,
},
/// Quick project discovery and overview
Discover {
/// Show only specific components
#[arg(short, long)]
filter: Option<String>,
},
/// Analyze middleware chain and execution order
Middleware {
/// Show middleware conflicts
#[arg(long)]
conflicts: bool,
},
/// Discover and analyze models
Models {
/// Show model relationships
#[arg(long)]
relationships: bool,
},
/// Analyze complete project structure and generate comprehensive report
Project {
/// Include detailed handler analysis
#[arg(long)]
detailed: bool,
/// Output format
#[arg(short, long, default_value = "table")]
format: String,
},
/// Display route tree with parameters and conflicts
Routes {
/// Show route conflicts only
#[arg(long)]
conflicts_only: bool,
/// Validate all handlers exist
#[arg(long)]
validate: bool,
},
/// Analyze views and templates
Views {
/// Show layout hierarchy
#[arg(long)]
layout: bool,
/// Show specific view details
#[arg(short, long)]
name: Option<String>,
/// Show security analysis
#[arg(long)]
security: bool,
},
}