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

     1  #!/usr/bin/env sh
     2  
     3  echo "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      # Output an invalid directive, which should be ignored
    11      echo ":2222"
    12  # else
    13      # Don't include the directive, to test it is really optional
    14  fi