DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Refactor common code into crate

Open miroman9364 opened this issue 2 years ago • 0 comments

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_utils that contains common code that can be reused in many/all resource implementations.
  • Move file_lib/src/debug.rs into 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.

miroman9364 avatar Oct 12 '23 00:10 miroman9364