apigee / apigeelint

Static code analysis for Apigee proxy bundles to encourage API developers to use best practices and avoid anti-patterns.
Apache License 2.0
91 stars 71 forks source link

feat: be more flexible about finding bundle directory #435

Closed DinoChiesa closed 4 months ago

DinoChiesa commented 4 months ago

This adds just a bit of logic in the cli.js to be a little more helpful in finding the bundle.

Without this change, users need to specify the -s option with the trailing apiproxy directory, or the trailing sharedflowbundle directory. WITH this change, the cli will still accept a parent directory if there is exactly one apiproxy subdir, or one sharedflowbundle subdir.