Project

General

Profile

Bug #16239

Recommend bash-completion package with rudder-agent

Added by Florian Heigl 6 months ago. Updated 6 months ago.

Status:
Pending release
Priority:
N/A
Category:
Agent
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
First impressions of Rudder
Effort required:
Priority:
80

Description

I remember to have had tab completion for rudder* commands.
In my current testing round, it seems there is none.

I logged out and back in, the dependencies are there.

root@svc-debian9-687:~# dpkg -l | grep rudder
ii rudder-agent 6.0.0~beta1-debian9 amd64 Configuration management and audit tool - agent
root@svc-debian9-687:~# cat /etc/debian_version
9.5
root@svc-debian9-687:~# aptitude search bash-com
i bash-completion - programmable completion for the bash shell

So I suspect it was a contrib bit that hasn't made it into the agent or got lost or something.
Or I dreamed up the whole thing? (don't think so)
It makes quite the difference in usability though.


Related issues

Related to Rudder - Bug #16250: Rudder autocompletion does not complete automatically the inputsReleasedBenoît PECCATTEActions
#1

Updated by Félix DALLIDET 6 months ago

Hi Florian, completion files are still packaged under /etc/bash_completion.d/.
We do not set the bash-completion as a dependency since it is not mandatory to run rudder.
But we should definitely put it as a recommended dependency

Installing the bash-completion package should make it works as you expect it to :)

#2

Updated by Félix DALLIDET 6 months ago

  • Target version set to 5.0.15
#3

Updated by Félix DALLIDET 6 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
#4

Updated by Félix DALLIDET 6 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2150
#5

Updated by Félix DALLIDET 6 months ago

  • Status changed from Pending technical review to Pending release
#6

Updated by Alexis MOUSSET 6 months ago

  • Subject changed from bash completion to Recommend bash-completion package with rudder-agent
#7

Updated by Florian Heigl 6 months ago

Hi,

please have a look at my first post - i had bash completion installed, but it didn't kick in for 'rudder<tab>'
does it work for you like this?

correction - it's there it's working, it just works a bit odd.

root@svc-debian9-687:~# rudder age<tab>
agent directive help relay remote server

Here it should resolv to rudder agent already. It works quite badly that's why i thought it doesn't work. But maybe that's just how bash does it, i have been on other equipment for a lot of time recently.

So i think they apt-recommend solution is good! Not sure what is wrong with the completion.

#9

Updated by Vincent MEMBRÉ 6 months ago

This bug has been fixed in Rudder 5.0.15 which was released today.

#10

Updated by Alexis MOUSSET 6 months ago

  • Related to Bug #16250: Rudder autocompletion does not complete automatically the inputs added

Also available in: Atom PDF