strmprivacy / cli

This is the STRM Privacy Command Line Interface, to define and manage your privacy streams, data schemas, event contracts and much more.
https://strmprivacy.io
Apache License 2.0
6 stars 2 forks source link

Clarify fish completion install #41

Closed ariebovenberg closed 3 years ago

ariebovenberg commented 3 years ago

Nice setup. A small thing I encountered. The instructions to install completions for the fish shell seem outdated. (source "strm/path.fish.inc")

There seems to be a strm completion fish command so it seems you already have something better in mind :)

trietsch commented 3 years ago

Hey @ariebovenberg, thanks for reporting! We'll take a look at this. If you find out the solution to setup fish autocomplete, please let us know.

ariebovenberg commented 3 years ago

@trietsch looks like you're already mostly there. Whatever CLI framework you're using provides it out-of-the-box

this does the trick

strm completion fish > ~/.config/fish/completions/strm.fish  # OR $XDG_CONFIG_HOME instead of ~/.config

Documentation on distributing fish completions: https://fishshell.com/docs/current/completions.html example homebrew formula distributing completions: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/poetry.rb

trietsch commented 3 years ago

Nice, thanks for sharing! We'll update the caveats section of our Homebrew formula. Regarding the poetry.rb example formula for installing autocomplete automatically, if I recall correctly, I have attempted that. But I'll definitely try that again, now that I've got another example :)

trietsch commented 3 years ago

Fixed in https://github.com/streammachineio/cli/releases/tag/v1.6.0