Release v0.2.2: separate library nicknames and add doctor migration
This commit is contained in:
1 parent
5e33a1d9dd
commit
8ac15838bf
11 files changed
+519
-18
No files matched your search
+15
@@ -3,6 +3,7 @@
|
||||
mod config;
|
||||
mod desktop;
|
||||
mod destination;
|
||||
mod doctor;
|
||||
mod gui;
|
||||
mod importer;
|
||||
mod matching;
|
||||
@@ -74,6 +75,15 @@ enum Commands {
|
||||
#[arg(long)]
|
||||
dry_run: bool,
|
||||
},
|
||||
/// Check managed nicknames; --fix backs up and migrates libraries/references.
|
||||
Doctor {
|
||||
#[arg(long, required_unless_present = "project", conflicts_with = "project")]
|
||||
global: bool,
|
||||
#[arg(long)]
|
||||
project: Option<PathBuf>,
|
||||
#[arg(long)]
|
||||
fix: bool,
|
||||
},
|
||||
/// Show project suggestions from running KiCad processes.
|
||||
Discover,
|
||||
}
|
||||
@@ -392,6 +402,11 @@ fn main() -> Result<()> {
|
||||
&mut Session::default(),
|
||||
)
|
||||
}
|
||||
Commands::Doctor {
|
||||
global: _,
|
||||
project,
|
||||
fix,
|
||||
} => doctor::run(&cfg, project.as_deref(), fix),
|
||||
Commands::Discover => {
|
||||
let p = desktop::projects();
|
||||
if p.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user