opsmill / infrahub-sdk-python

Python SDK to interact with Infrahub
https://www.opsmill.com
Apache License 2.0
3 stars 2 forks source link

bug: running `infrahubctl transform` without an argument does not list the existing transforms #140

Closed wvandeun closed 6 days ago

wvandeun commented 1 week ago

Component

infrahubctl

Infrahub SDK version

1.0.1

Current Behavior

When running infrahubctl transform without any argument we would get the following output, which was probably not perfect, but at least it gave you a clue of what we would expect.

Unable to find requested transform: 
Python transforms defined in repository: 2
OCInterfaces (transforms/openconfig.py::OCInterfaces)
oc_bgp_neighbors (transforms/openconfig.py::OCBGPNeighbors)

Since the release of 1.0.1 we get the following message:

Error: Unable to find '' in 'python_transforms'

Which is more confusing.

Expected Behavior

The output should be explicitly stating that we are expecting an argument. Maybe print the usage or help of the transform subcommand.

Steps to Reproduce

Additional Information

No response