github.com/codefresh-io/kcfi@v0.0.0-20230301195427-c1578715cc46/cmd/kcfi/testdata/helmhome/helm/plugins/args/plugin.complete (about)

     1  #!/usr/bin/env sh
     2  
     3  echo "plugin.complete was called"
     4  echo "Namespace: ${HELM_NAMESPACE:-NO_NS}"
     5  echo "Num args received: ${#}"
     6  echo "Args received: ${@}"
     7  
     8  # Final printout is the optional completion directive of the form :<directive>
     9  if [ "$HELM_NAMESPACE" = "default" ]; then
    10      echo ":4"
    11  else
    12      echo ":2"
    13  fi