-
Notifications
You must be signed in to change notification settings - Fork 72
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
Install without using Flags #120
Comments
Hi! Do you mean the The Install/Uninstall functions can also be called manually. Look at this file: https://github.com/posener/complete/blob/master/install/install.go Does this help or I totally missed your request? |
I must've missed where these were documented. Is this an end-user solution?
I'll take a look. Thank you. I'm also realizing that I was using v1, but this functionality appears to be in v2. But when I try to include v2, I'm getting errors. Ideas? .PHONY: build
build:
mkdir -p ./bin
cd ./src/ && go mod tidy
go get -v ./src/...
go build -ldflags="-s -w" -o bin/mkit src/*.go
My |
Also, my request is more to expose |
Right, I missed documenting them, added. Yes, this is an end-user solution.
Yes, you should use v2, it is written in the documentation of v1.
It is hard to help you. It would be easier if you could reference repo, or drop here files that you use for your project. It should be possible to use v2 when you import
Can you be more concrete about the API change that you want? Do you want to be able to provide a custom file? Or just the line that is needed to be added to the profile script? |
Just the line that is needed to be added to the profile script. |
I would prefer to use a completely different approach to exposing the install/uninstall than with the
flags
package. I'm using a completely different package for building CLI apps, and would like to integrate the output of this framework with that other package by simply Printing/Sprinting the output to wherever the user wants.The text was updated successfully, but these errors were encountered: