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

[ENHANCEMENT] Allow users to console into a container by using the $JID # in addition to the hostname. #701

Open
X86BSD opened this issue May 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@X86BSD
Copy link
Contributor

X86BSD commented May 30, 2024

Is your feature request related to a problem? Please describe.
This was briefly discussed in #193 along with a patch (at the time) by johanhen.
This is another usability issue, not a bug. When using bastille for more than a small number of containers, using the hostname to console into the containers becomes... tedious. No one wants to type: "bastille console reallyreallylonghostnamethattakestoolongtotypeandiserrorprone". When it would be MUCH quicker and simpler and remove that pain point to simply use the JID #. "bastille console 1" is clearly easier to do than having to type in the reallyreallylonghostname.

Describe the solution you'd like
What I would like to see is a small modification so that users can simply type in the JID # when console'ing into a container. I'm not proposing changing the current way of typing in the hostname, I am simply suggesting to allow the user to enter either the hostname OR the JID # to console into a container. Ex. "bastille console 1". I am actually kind of surprised this has not been brought up before. Using hostname's only imo becomes tedious pretty quickly with more than a handful of jails. This is not a high priority of course, just something I think is a pain point I would like to see removed.

@X86BSD X86BSD added the enhancement New feature or request label May 30, 2024
@yaazkal
Copy link
Collaborator

yaazkal commented Jul 18, 2024

Thanks for the suggestion, let me say that a name like reallyreallylonghostnamethattakestoolongtotypeandiserrorprone is the user's fault in the first place as Bastille never force the naming in any way :)

That said, bastille console 1 will not work as anyone could name its jails as numbers, but maybe an option like bastille console -j 1 will be clearer. I don't think it should necesary has to delete the use of the command with the jail name, that must be preserved.

Let's see what other people think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants