Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VBoxManage completion #178

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

Open
guillomovitch wants to merge 1 commit into scop:main
base: main
Choose a base branch
Loading
from guillomovitch:master
Open

Conversation

@guillomovitch
Copy link
Contributor

@guillomovitch guillomovitch commented Jan 3, 2018

No description provided.

Copy link
Owner

@scop scop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's a very quick peek. In addition to inline comments, Makefile.am changes are missing, as are the test cases.

Additionally, this is such a huge completion I don't use myself, so the standard questions apply: have you considered submitting this for inclusion in upstream? If not, would you be willing to actively maintain this in bash-completion in the future, i.e. have your commit access re-enabled?

return 0
;;
--ostype)
_vboxmanage_get_ostypes
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Should be _vboxmanage_get_ostype (no trailing "s").

case $prev in
--name)
_vboxmanage_get_vmname
return 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace these with plain returns (no 0) or consistency with rest of the tree.

esac

if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "--name --groups --description --ostype \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't these huge hardcoded lists be parsed with e.g. _parse_help?

Copy link
Owner

scop commented Jan 6, 2018

Oh, and the commit message needs work, something like "VBoxManage: New completion" would be appropriate.

Copy link
Contributor Author

Sorry for the answer delay. Here is a new proposal, addressing most (if not all) comments.
And I'm volonteering to maintain it if needed, of course.

Copy link

gryf commented Oct 8, 2018

There is at least several different bash completions for vboxmanage with different state and quality. I'm wondering if there is a point to keep such complicated completion. Bash-completion itself have separate package at most Linux systems, so the VirtualBox. In perfect world vboxmanage completion should match version of installed VirtualBox, since completion may offer options which doesn't exists in in installed version of VirtualBox, or on the other hand, it may not provide right completion, if completion is too old.
I see the point to have it, but I'd rather have the right version matching installed VirtualBox, than a broken one.
Also, depending o Linux distribution, it can happen, that they main line will contain different version of VirtualBox.

Disclaimer: I'm the author of another vboxmanage completion script.

@scop scop force-pushed the master branch 3 times, most recently from c0e9459 to 09307f8 Compare March 30, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@scop scop scop requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /