-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Rest flags and arguments for commands #70
Comments
I was contemplating the same feature for a while now, and I think I even have a branch that attempts to achieve it (but I was not happy with it). How do you expect to obtain these args in your code? Just have a special variable (say |
Well - I have implemented it, and I think it works nicely.
In addition, you can define the
catch_all:
label: aws params
help: Additional parameters that will pass through to the AWS CLI will result in:
Examples: If you can test it before I release it, it will be great. # Gemfile
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "bashly", github: 'dannyben/bashly', branch: 'add/catch-all' and then run |
@DannyBen : Thanks for the impossibly quick turnaround. I tested it with your branch and it works fine for my case! |
Super. I will release a new version shortly. Thank you for taking the time to open this issue and to test the release. |
Version 0.4.3 released to Rubygems, and to Dockerhub. |
@abh1kg - I have implemented something that might be of use to you. There is now an See the Extensible Scripts section in teh README, and its associated examples if it is of any interest at all. |
Hi, @DannyBen! I'm just wondering how you would recommenced using the Thanks for the great tool,
|
It would be nice to somehow disable the "invalid option" validation error for certain commands which can expect arbitrary options as flags and/or arguments. I am looking to develop a CLI which performs a few specific actions but ultimately delegates to the AWS CLI. Is this somehow possible?
Currently
bashly.yml
:Command (which I wish it works):
However, it exits with error:
Would it be possible to relax the validation checks for a few commands?
The text was updated successfully, but these errors were encountered: