canon-archive 0.2.2

A CLI tool for organizing large media libraries into a canonical archive
# canon ls

List sources matching filters. Useful for quick inspection and piping to other tools.

```bash
# List all sources in current directory
canon ls .

# List sources matching a filter
canon ls --where 'source.ext=jpg'

# Filter by source ID
canon ls --where 'source.id=12345'

# List only archived sources (content exists in an archive)
canon ls --archived

# List archived sources with their archive location(s)
# Output: source_path<TAB>archive_path (one line per archive location)
canon ls --archived=show

# List only unarchived sources (hashed but not in any archive)
canon ls --unarchived

# List only unhashed sources (no content hash yet)
canon ls --unhashed

# Show duplicate files (same content hash), grouped by hash
canon ls --duplicates

# Include sources from archive roots (automatic when scope is in an archive)
canon ls --include-archived

# Include excluded sources
canon ls --include-excluded

# Long format with size and date
canon ls -l

# Null-delimited output for xargs (handles spaces in paths, macOS)
canon ls -0 --where 'source.ext=jpg' | xargs -0 open -a Preview
```

**Path display:**
- Relative path input (`.`, `subdir`) → relative output paths
- Absolute path input (`/path/to/dir`) → absolute output paths

Output is one path per line (stdout), with a count printed to stderr:
```
vacation/img001.jpg
vacation/img002.jpg
work/doc.pdf
3 sources
```