auth0 / auth0-deploy-cli

The Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configuration. It integrates into your development workflows as a standalone CLI or as a node module.
MIT License
236 stars 147 forks source link

Return assets from exported functions #871

Closed willvedd closed 6 months ago

willvedd commented 7 months ago

🔧 Changes

The CLI can be consumed as a node module. When currently invoked as such, there are no return values. This PR introduces the returning of the assets object on both import and export. This attempts to provide some useful information for the user to potentially act on or use to verify the expected results.

🔬 Testing

📝 Checklist

codecov-commenter commented 7 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (fa738a5) 84.23% compared to head (c858674) 84.19%.

Files Patch % Lines
src/commands/export.ts 50.00% 1 Missing :warning:
src/commands/import.ts 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #871 +/- ## ========================================== - Coverage 84.23% 84.19% -0.05% ========================================== Files 115 115 Lines 3610 3612 +2 Branches 700 700 ========================================== Hits 3041 3041 - Misses 324 326 +2 Partials 245 245 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.