Skip to content

Commit

Permalink
Add 'controller'.
Browse files Browse the repository at this point in the history
In the explanation about controller scripts, it read 'A script is not intended to be reusable', which made no sense to me, so I changed it to 'A controller script is not intended to be reusable'.
  • Loading branch information
richy58729 authored Jan 28, 2023
1 parent fbb9f55 commit f0dc492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Best-Practices/Building-Reusable-Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
For this discussion, it's important to have some agreed-upon terminology. While the terminology here isn't used universally, the community generally agrees that several types of "script" exist:

1. Some scripts contain tools, which are meant to be reusable. These are typically functions or advanced functions, and they are typically contained in a script module or in a function library of some kind. These tools are designed for a high level of reuse.
2. Some scripts are controllers, meaning they are intended to utilize one or more tools (functions, commands, etc) to automate a specific business process. A script is not intended to be reusable; it is intended to make use of reuse by leveraging functions and other commands.
2. Some scripts are controllers, meaning they are intended to utilize one or more tools (functions, commands, etc) to automate a specific business process. A controller script is not intended to be reusable; it is intended to make use of reuse by leveraging functions and other commands.

For example, you might write a "New-CorpUser" script, which provisions new users. In it, you might call numerous commands and functions to create a user account, mailbox-enable them, provision a home folder, and so on. Those discrete tasks might also be used in other processes, so you build them as functions. The script is only intended to automate that one process, and so it doesn't need to exhibit reusability concepts. It's a standalone thing.

Expand Down

0 comments on commit f0dc492

Please sign in to comment.