Skip to content

Add bash autocompletion to MAS CLI Container Image #1916

@luca-banzato

Description

@luca-banzato

Feature and motivation

I propose adding bash completion support to the ibm-mas/cli image.

Currently, the quay.io/ibmmas/cli:16.0.0 image does not provide:

  • bash completion for commonly used tools:
    • oc
    • kubectl
    • helm
    • argocd
    • aws (via aws_completer)

This makes interactive use of the image less efficient, especially when troubleshooting or iterating on commands within a shell inside the container.

Why this is useful

Bash completion significantly speeds up work with long and complex commands and reduces typos.

Enabling this feature directly in the base CLI image improves developer/operator productivity and provides a more complete toolbox for day‑to‑day Kubernetes/OpenShift and MAS operations.

Usage example

1. Start a shell in the CLI container

oc run -it mas-cli --image=quay.io/ibmmas/cli:16.0.0 -- bash

2. Use bash completion for common tools

# Kubernetes
kubectl get pod <TAB><TAB>
kubectl get deployment <TAB><TAB>

# OpenShift
oc get route <TAB><TAB>

# Helm
helm upgrade --install <TAB><TAB>

# ArgoCD
argocd app list --project <TAB><TAB>

# AWS CLI
aws eks describe-cluster --name <TAB><TAB>

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions