Comments (8)
The three ways I read the document report errors. Is it my operation problem
from bashly.
OS: centos7.9
ruby : ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
from bashly.
There is a difference in the completion command name between the 0.9.x version and the pre-release 1.0.x
Since you are using the docker image, pull the latest release candidate:
$ docker pull dannyben/bashly
Then check version:
$ docker run --rm -it dannyben/bashly --version
1.0.0.rc1
then run this command to see available libraries to add:
$ docker run --rm -it dannyben/bashly add --list
If you are using the 0.9.x version, it is bashly add comp function
instead of bashly add completions
from bashly.
I will release the final 1.0 version in a few days (maybe tomorrow), so everything will be in sync.
from bashly.
ok, i know ,thank you very much!!
from bashly.
Sure thing - sorry for the confusion, and thanks for taking the time to report.
from bashly.
When I click the TAB auto-complete command, is this "Bash complete" the same as Linux's "bash-complete"?
from bashly.
the bashly add completions
(or bashly add comp
in the old version) adds a completions function that provides tab completion. See https://bashly.dannyb.co/advanced/bash-completion/
You can either create a standalone completions script, or a function that is a part of your bashly-generated bash script.
If you do the function, there are a couple of additional steps you need to take, as noted in the documentation.
from bashly.
Related Issues (20)
- Allow default array when repeatable is true HOT 9
- Add support for array in `flag.default` and `arg.default` schema HOT 1
- JSON schema validation passes when it shouldn't HOT 12
- Add JSON schema tests to ensure the validation fails when it should HOT 1
- Whitelisted arg with default from environment HOT 6
- Add `environment_variable.allowed` whitelist HOT 1
- Update `inspect_args` to also print managed environment variables HOT 1
- Docker container does not have pandoc installed HOT 2
- Do not render `inspect_args` when `env` is set to `production` HOT 2
- Add key-value parameters HOT 6
- Add support for recursive --help HOT 6
- Build multi-arch docker HOT 2
- Default argument is not validated HOT 6
- Flag arguments with a single hyphen prefix are not working HOT 1
- bash completions can't work properly when the position args used 'allowed:' HOT 3
- Repeatable args don't escape quotation marks HOT 12
- Add option to disable splitting of flags with value for catch_all arguments HOT 9
- Lifecycle for temporary directories HOT 1
- Heredoc indentation issue in bashly generated functions. HOT 9
- The Flag value is detected as an Argument HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bashly.