You are more than welcome to contribute to the module, whether it is Pull Requests, Feature Suggestions or Bug Reports!
- Fork this repository (see this forking guide for more information).
- Checkout the repository locally with
git clone git@github.com:{your_username}/AzAuth.git
. - If you haven't already, you will need the platyPS PowerShell Module to generate command help and docs.
The repository is organized as below:
- Docs (
docs/help
): Help documentation for the module. Used byplatyPS
to generate help files. - AzAuth.Core (
source/AzAuth.Core
): The assembly which wraps the SDK and provides logic and functionality. - AzAuth.PS (
source/AzAuth.PS
): The compiled PowerShell module with commands and parameters. - build.ps1: The script that builds the module from source, generates documentation and runs the
Pester
tests.
.\build.ps1
- Import the module:
Import-Module .\AzAuth
platyPS is used to write the external help in markdown. When contributing, always make sure that the changes are added to the help file.
- Install the
platyPS
module from the PowerShell Gallery:
Install-Module -Name platyPS -Scope CurrentUser
Import-Module platyPS
- Create markdown help files for the module (this will only create help files for new commands, existing files will not be overwritten):
# you need the module imported in the session
Import-Module .\AzAuth
New-MarkdownHelp -Module AzAuth -OutputFolder .\docs\help
Edit the new markdown files in the .\docs\help
folder and replace {{ ... }}
placeholders with missing help content.
- Run the build script to update the documentation.
.\build.ps1
- If you've made changes to the commands in the module, you can easily update the markdown files with:
# re-import your module with latest changes
Import-Module .\AzAuth -Force
Update-MarkdownHelp .\docs\help
If you like to start contributing, please make sure that there is a related issue to link to your PR.
- Make sure that the issue is tagged in the PR.
- Write a short but informative commit message.
- Please first search Open Issues before opening an issue to check whether your feature has already been suggested. If it has, feel free to add your own comments to the existing issue.
- Ensure you have included a "What?" - what your feature entails, being as specific as possible, and giving mocked-up syntax examples where possible.
- Ensure you have included a "Why?" - what the benefit of including this feature will be.
- Please first search Open Issues before opening an issue, to see if it has already been reported.
- Try to be as specific as possible, including the version of the module, PowerShell version and OS used to reproduce the issue, and any example files or snippets of code needed to reproduce it.