A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.
//! Registers Muelle's logon task through the Task Scheduler API (what
//! `autostart::set` now does) for the given muelle.exe, and reports.
//! `spike_autostart <path to muelle.exe>` or `spike_autostart off`.
fn main() -> anyhow::Result<()> {
let arg = std::env::args()
.nth(1)
.ok_or_else(|| anyhow::anyhow!("usage: spike_autostart <muelle.exe path | off>"))?;
let target = (arg != "off").then_some(arg.as_str());
match muelle_shell::autostart::set(target) {
Ok(()) => println!("ok; is_enabled = {}", muelle_shell::autostart::is_enabled()),
Err(error) => return Err(error.into()),
}
Ok(())
}