4 Commits

Author SHA1 Message Date
Marc Khouzam
8854547d35 feat(comp): Uninstall accepts multiple releases
The 'uninstall' command can accept more than one release name as
arguments; this commit teaches the completion logic to respect this.

At the same time, the commit adds tests for the commands using the
modified code path.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2021-03-13 17:15:35 -05:00
Marc Khouzam
d6708667da feat(comp): Disable file completion when not valid
With Cobra 1.0, it is now possible to control when file completion
should or should not be done.  For example:
  helm list <TAB>
should not trigger file completion since 'helm list' does not accept
any arguments.

This commit disables file completion when appropriate and adds tests to
verify that file completion is properly disabled.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2020-08-18 12:39:00 -04:00
Marc Khouzam
0095e32001 feat(test): add some completion tests
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2020-01-15 19:02:58 -05:00
Martin Hickey
f12be4c4b6 Port #4078 to Helm v3 (#6619)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-11 09:03:36 +01:00