DSC
DSC copied to clipboard
Refactor common code into crate
Summary of the new feature / enhancement
There is some common code in many/all the current resources. This code should be refactored into functions and put into a create that can be reused instead of duplicated. For example, the code to check an environment variable and then prompt a user to attach a debugger.
Proposed technical implementation details (optional)
- Create a new library crate, e.g.,
dsc_utilsthat contains common code that can be reused in many/all resource implementations. - Move
file_lib/src/debug.rsinto the new crate and update all resources that use similar code to prompt the user to attach a debugger. - The code used to read the pipeline into a string is another good candidate for this.