Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Scripts, Functions, and Modules #4

Open
5 of 11 tasks
JamesDBartlett3 opened this issue Sep 1, 2023 · 0 comments
Open
5 of 11 tasks

Refactor: Scripts, Functions, and Modules #4

JamesDBartlett3 opened this issue Sep 1, 2023 · 0 comments
Assignees
Labels
maintenance refactoring, formatting, housekeeping, etc.

Comments

@JamesDBartlett3
Copy link
Owner

JamesDBartlett3 commented Sep 1, 2023

  • 1. Refactor functions into standalone script (.ps1) files
  • 2. Parameterize all variables that were originally designed to be modified by the user
  • 3. Write a "module maker" script that concatenates the content of all script files into a single module (.psm1) file
  • 4. Write a GitHub Action that:
  • a. runs the module maker after each new commit on the main branch
  • b. saves the modified module file
  • c. commits the changes, using the same commit message as the previous commit
  • 5. Write an installer script with user options:
  • a. create a symbolic link to the module's current location and put it in one of the directories in $env:PSModulePath
  • b. copy/move the module file from its current location to one of the directories in $env:PSModulePath
  • c. select and install a subset of functions from the module using one of the above methods (detecting and handling dependencies might make this too complicated, but we'll see)
@JamesDBartlett3 JamesDBartlett3 self-assigned this Sep 1, 2023
@JamesDBartlett3 JamesDBartlett3 added the maintenance refactoring, formatting, housekeeping, etc. label Sep 1, 2023
@JamesDBartlett3 JamesDBartlett3 pinned this issue Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance refactoring, formatting, housekeeping, etc.
Projects
None yet
Development

No branches or pull requests

1 participant