Skip to content

Chain command after optional "--" #334

Answered by chrisant996
elieux asked this question in Q&A
Discussion options

You must be logged in to vote

Oops, my mistake:

I said to replace :nofiles() with :chaincommand(). But there is a bug that in some cases falls back to the "parent" argmatcher by mistake if :nofiles() isn't used as well.

For now you can use :chaincommand():nofiles(). And the next Clink update will include a fix so that the :nofiles() isn't needed (it should be implied by :chaincommand()).

But also, aws-vault exec foo Tab will behave as though exec.enable is False, due to a bug that is already fixed for the upcoming v1.3.40 release. It chains correctly, it just didn't respect exec.enable correctly after chaining.

This script does what I think are you describing:

local function profile()
    return { "foo", "bar" } -- th…

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
1 reply
@elieux
Comment options

Comment options

You must be logged in to vote
1 reply
@elieux
Comment options

Comment options

You must be logged in to vote
5 replies
@elieux
Comment options

@elieux
Comment options

@chrisant996
Comment options

@elieux
Comment options

@chrisant996
Comment options

Answer selected by elieux
Comment options

You must be logged in to vote
2 replies
@chrisant996
Comment options

@elieux
Comment options

Comment options

You must be logged in to vote
3 replies
@elieux
Comment options

@elieux
Comment options

@chrisant996
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants