Skip to content

feature: Enhance search command with tags and filter options #1430

@ChristianLempa

Description

@ChristianLempa

Description

Improve the search command to support querying by multiple criteria and applying filters.

Proposed Features

Search Query

  • Search across multiple fields: ID, name, features, and tags
  • Single search string matches any of these fields

Filter Flags

  • --features / -f: Filter by features (comma-separated list)
    • Example: --features traefik,swarm
  • --tags / -t: Filter by tags (comma-separated list)
    • Example: --tags webserver,proxy
  • --schema: Filter by schema version (comma-separated)
    • Example: --schema 1.0,1.1
  • --version: Filter by template version
  • --library: Filter by library source (comma-separated)
    • Example: --library local,library2

Example Usage

# Search for templates with traefik feature in schema 1.1
boilerplates compose search nginx --features traefik --schema 1.1

# Search across all fields with multiple filters
boilerplates compose search web --features traefik,swarm --tags production --library default

Implementation Notes

  • Filters should work as AND conditions (all must match)
  • Comma-separated values within a filter work as OR (any can match)
  • Search query matches against ID, name, features, or tags fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions