jetstack / seaglass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remove trailing `/` on input of repos

hawksight opened this issue · comments

When using the repos subcommmand, if you have a trailing / you don't get a result. Lets remove the trailing slash on user input for consistent results?

Example:

➜  seaglass git:(harbor) ./seaglass repos registry.venafi.cloud/charts
registry.venafi.cloud/charts/approver-policy-enterprise
registry.venafi.cloud/charts/cert-discovery-venafi
registry.venafi.cloud/charts/cert-manager
registry.venafi.cloud/charts/cert-manager-approver-policy
registry.venafi.cloud/charts/cert-manager-csi-driver
registry.venafi.cloud/charts/cert-manager-csi-driver-spiffe
registry.venafi.cloud/charts/cert-manager-istio-csr
registry.venafi.cloud/charts/isolated-issuer
registry.venafi.cloud/charts/jetstack-agent
registry.venafi.cloud/charts/js-operator
registry.venafi.cloud/charts/trust-manager
registry.venafi.cloud/charts/venafi-connection
registry.venafi.cloud/charts/venafi-enhanced-issuer
registry.venafi.cloud/charts/venafi-kubernetes-agent
registry.venafi.cloud/charts/venafi-oauth-helper
➜  seaglass git:(harbor) ./seaglass repos registry.venafi.cloud/charts/
➜  seaglass git:(harbor)

Just tired to latest main branch and can confirm it's working as expected:

./seaglass repos docker.io/redislabs/
./seaglass manifests docker.io/redislabs/redis/

Both of those work now :)