Skip to content

Add shell completion support - #15

Merged
samuel-williams-shopify merged 37 commits into
mainfrom
add-shell-completion
Jun 17, 2026
Merged

Add shell completion support#15
samuel-williams-shopify merged 37 commits into
mainfrom
add-shell-completion

Conversation

@samuel-williams-shopify

@samuel-williams-shopify samuel-williams-shopify commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Samovar-local completion support with structured suggestions and TSV result printing
  • expose completion through a separate Command.complete entry point defined by the completion concern
  • simplify completion input to argv truncated to the cursor, with the final item as the current token
  • support explicit native path and directory completion requests via completions: :path, :file, and :directory
  • keep shell adapter install/generate behavior out of Samovar and in the companion completion gem

Related

Testing

  • PATH=/Users/samuel/.local/state/tec/profiles/base/current/global/bin:$PATH BUNDLE_GEMFILE=gems.rb bundle exec sus
  • PATH=/Users/samuel/.local/state/tec/profiles/base/current/global/bin:$PATH BUNDLE_GEMFILE=gems.rb bundle exec rubocop

@samuel-williams-shopify
samuel-williams-shopify force-pushed the add-shell-completion branch 3 times, most recently from 95a0815 to 69faff3 Compare June 12, 2026 07:33
@samuel-williams-shopify
samuel-williams-shopify force-pushed the add-shell-completion branch 19 times, most recently from 34274cb to 4685461 Compare June 17, 2026 02:24
@samuel-williams-shopify
samuel-williams-shopify merged commit 85a943f into main Jun 17, 2026
36 of 38 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the add-shell-completion branch June 17, 2026 02:46
ioquatix pushed a commit that referenced this pull request Jun 17, 2026
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.

1 participant