Skip to content

fix: make search out pipe-able - #229

Merged
zeroshade merged 3 commits into
columnar-tech:mainfrom
amoeba:fix/search-pipe
Dec 12, 2025
Merged

zeroshade merged 3 commits into
columnar-tech:mainfrom
amoeba:fix/search-pipe

Conversation

@amoeba

@amoeba amoeba commented Dec 12, 2025

Copy link
Copy Markdown
Member

This PR takes us from,

$ dbc search | wc -l
       0

to

$ dbc search | wc -l
      10

which means people can do more exciting and interesting things such as,

$ dbc search | awk '{print $2 }' | xargs -I {} dbc install {}

Also fixes a minor issue in the viewDrivers return value which makes commands like wc report the correct count.

Without this, search | wc -l is wrong because we need a trailing newline
@amoeba
amoeba requested a review from zeroshade December 12, 2025 02:22

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@zeroshade
zeroshade merged commit ad3ec17 into columnar-tech:main Dec 12, 2025
zeroshade pushed a commit that referenced this pull request Apr 17, 2026
This PR takes us from,

```console
$ dbc search | wc -l
       0
```

to

```
$ dbc search | wc -l
      10
```

which means people can do more exciting and interesting things such as,

```console
$ dbc search | awk '{print $2 }' | xargs -I {} dbc install {}
```

Also fixes a minor issue in the viewDrivers return value which makes
commands like wc report the correct count.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants