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

FR: Support post-picking hooks #77

Open
hinricht opened this issue Jul 28, 2023 · 0 comments
Open

FR: Support post-picking hooks #77

hinricht opened this issue Jul 28, 2023 · 0 comments

Comments

@hinricht
Copy link

It seems from reading the hook docs that

Hooks are executed prior to the fuzzy search via $ switch or can be called directly via $ switch hooks --hook-name=.

I'd like to call a hook immediately after I picked the context. I.e. setting the right gcloud config depending on the k8s context.

Is this sth that could be easily implemented ?

i.e. adding a type key to execution ?

 kind: SwitchConfig
hooks:
  - name: inline
    type: InlineCommand
    type: Executable
    path: "/home/hinricht/bin/gcloud-config.sh"
    execution:
      type: post
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

No branches or pull requests

1 participant