Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: znap install <repo> --no-executable #205

Open
ghostsquad opened this issue Dec 22, 2022 · 0 comments
Open

Feature Request: znap install <repo> --no-executable #205

ghostsquad opened this issue Dec 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ghostsquad
Copy link

What do you want?

znap install manages both the executable and completions, and I thought it would be nice if I could just install the completions, such as if I'm using asdf to manage the executable.

Why do you want this?

I'm using ASDF to manage the executable, but there's no easy way to get completions through ASDF as well.

Who else would benefit from this?

Everyone!

How should it work?

Given this situation:

  • I have asdf managing something such as task

When I perform these steps:

  1. znap install asdf-vm/asdf --no-executable

Then I expect this to happen:

  • znap only installs completions, nothing in ~/.local/bin
@ghostsquad ghostsquad added the enhancement New feature or request label Dec 22, 2022
rcloran added a commit to rcloran/zsh-snap that referenced this issue Oct 10, 2023
Fixes marlonrichert#205

Test:

```russell@zip:~ ❯ cat test.zsh
t() {
    path=(/usr/bin /bin)
    fpath=()
    echo --
    echo znap install "$@"
    znap install "$@"
    echo path = $#path , fpath = $#fpath
}

t asdf-vm/asdf --no-path --no-fpath
t --no-path --no-fpath asdf-vm/asdf
t --no-path asdf-vm/asdf
t asdf-vm/asdf --no-path
t --no-fpath asdf-vm/asdf
t asdf-vm/asdf --no-fpath
t asdf-vm/asdf
t asdf-vm/asdf --no-such-arg
russell@zip:~ ❯ source test.zsh
--
znap install asdf-vm/asdf --no-path --no-fpath
path = 2 , fpath = 0
--
znap install --no-path --no-fpath asdf-vm/asdf
path = 2 , fpath = 0
--
znap install --no-path asdf-vm/asdf
path = 2 , fpath = 1
--
znap install asdf-vm/asdf --no-path
path = 2 , fpath = 1
--
znap install --no-fpath asdf-vm/asdf
path = 3 , fpath = 0
--
znap install asdf-vm/asdf --no-fpath
path = 3 , fpath = 0
--
znap install asdf-vm/asdf
path = 3 , fpath = 1
--
znap install asdf-vm/asdf --no-such-arg
znap clone: invalid argument '--no-such-arg'
Usage: znap clone ( <user>/<repo> | <url> ) ...
Download repos in parallel.
path = 2 , fpath = 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant