Skip to content

feat: add search command to find structures by keyword#134

Merged
httpdss merged 2 commits intomainfrom
feature/search-command
May 7, 2026
Merged

feat: add search command to find structures by keyword#134
httpdss merged 2 commits intomainfrom
feature/search-command

Conversation

@httpdss
Copy link
Copy Markdown
Owner

@httpdss httpdss commented May 6, 2026

Summary

Adds a new structkit search <query> subcommand that lets users find structures by keyword. The query is matched case-insensitively against both structure names and their description YAML field.

Usage

structkit search terraform
structkit search docker --names-only
structkit search ci -s /path/to/custom/structures

Changes

  • structkit/commands/search.py — new SearchCommand with query positional arg, -s/--structures-path, and --names-only flags
  • structkit/main.py — registers the search subcommand
  • tests/test_search_command.py — 6 tests covering name match, description match, no results, --names-only, custom path, and parser registration

Implements a new 'structkit search <query>' subcommand that searches
available structures by matching the query (case-insensitive) against
both structure names and their description fields.

- Adds structkit/commands/search.py with SearchCommand
- Registers search subcommand in structkit/main.py
- Adds --structures-path and --names-only flags (consistent with list/info)
- Adds tests/test_search_command.py with 6 tests covering all main cases
Instructs Oz not to include Warp conversation/plan links or
co-author references in PR descriptions and commit messages.
@httpdss httpdss added minor enhancement New feature or request labels May 6, 2026
@httpdss httpdss merged commit 022b545 into main May 7, 2026
3 checks passed
@httpdss httpdss deleted the feature/search-command branch May 7, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant