{"record":{"id":"c79c9301c32d507c","repo":"spacedriveapp/spacedrive","slug":"no-library-specified-and-no-current-library-set","errorCode":null,"errorMessage":"No library specified and no current library set","messagePattern":"No library specified and no current library set","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"apps/cli/src/domains/library/args.rs","lineNumber":57,"sourceCode":"\t}\n}\n\n#[derive(Args, Debug)]\npub struct LibraryInfoArgs {\n\t/// Library ID to get information about (optional, defaults to current library)\n\tpub library_id: Option<Uuid>,\n}\n\nimpl LibraryInfoArgs {\n\t/// Create an input for the specified library ID or current library\n\tpub fn to_input(\n\t\t&self,\n\t\tcurrent_library_id: Option<Uuid>,\n\t) -> anyhow::Result<LibraryInfoQueryInput> {\n\t\tlet _library_id = self\n\t\t\t.library_id\n\t\t\t.or(current_library_id)\n\t\t\t.ok_or_else(|| anyhow::anyhow!(\"No library specified and no current library set\"))?;\n\n\t\tOk(LibraryInfoQueryInput {})\n\t}\n}\n\n#[derive(Args, Debug)]\npub struct LibrarySwitchArgs {\n\t/// Library ID to switch to\n\t#[arg(long)]\n\tpub library_id: Option<Uuid>,\n\t/// Library name to switch to\n\t#[arg(long)]\n\tpub name: Option<String>,\n}\n\n#[derive(Subcommand, Debug)]\npub enum SyncSetupCmd {\n\t/// Discover libraries on a paired device","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/apps/cli/src/domains/library/args.rs#L39-L75","documentation":"Error \"No library specified and no current library set\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at apps/cli/src/domains/library/args.rs:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6dfeccf2113039e35f2ce735f945e70dc3e4ea45","analyzedAt":"2026-08-16T11:26:17.074Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}