As a user, I want to be able to use DAMN tool's functionality within a Python script as library functions, so that I can incorporate them into other tools or workflows.
The work involves refactoring the existing commands (ls, show, metrics) to make them usable both as standalone CLI commands and as importable Python functions.
Tasks include:
Refactor the existing command functions to separate out the core logic from the CLI-specific aspects (such as command line argument parsing).
Create new functions (ls_asset, show_asset, metrics_asset) which can be imported and called within Python scripts.
Ensure that these new functions have the same functionality as the original CLI commands.
Create test scripts to validate that the functions work correctly when imported and called from Python scripts.
As a user, I want to be able to use DAMN tool's functionality within a Python script as library functions, so that I can incorporate them into other tools or workflows.
The work involves refactoring the existing commands (ls, show, metrics) to make them usable both as standalone CLI commands and as importable Python functions.
Tasks include:
ls_asset
,show_asset
,metrics_asset
) which can be imported and called within Python scripts.