set dotenv-load

# Shuffle a playlist in-place by name
shuffle name:
    cargo run -- "{{name}}"

# Shuffle a playlist in-place by ID
shuffle-id id:
    cargo run -- --source-id "{{id}}"

# Create a new playlist with the shuffled result (fails if name already exists)
shuffle-create source new-name:
    cargo run -- --create "{{new-name}}" "{{source}}"

# Write shuffled result to a named playlist (create if missing, overwrite if exists)
shuffle-output source target:
    cargo run -- --output "{{target}}" "{{source}}"

# Write shuffled result to an existing playlist by ID (overwrites)
shuffle-output-id source target-id:
    cargo run -- --output-id "{{target-id}}" "{{source}}"

# Build a release binary
build:
    cargo build --release
