- Follow the PSScriptAnalyzer rules
- Use
Invoke-ScriptAnalyzer -Settings PSScriptAnalyzerSettings.psd1to check your code against the project's settings - When you create a new file, should use CRLF line endings and UTF-8 encoding.
- Run
Invoke-Pester -Tag Offline(All tests) orInvoke-Pester -Tag Offline -Path <PathToTest>(Specific test) to run the tests - Ignore warning messages in tests. it's normal to have some warnings
- It will spend long time to run all tests, so run only the ones you need
- When you edit only comments, readme, or other non-code files, you can skip the tests
- Update the cmdlet help files in
/Docsif you add new parameters or change the behavior of existing cmdlets - After updating the help files, run
New-ExternalHelp -Path ./Docs/ -OutputPath ./PSOpenAI-Help.xml -Forceto build the help xml file.
- This project is PowerShell wrapper for OpenAI API, so you can refer to the OpenAI API documentation for details on how the API works.
- When you execute any command, ALWAYS use PowerShell commands. DO NOT use bash commands like
rg,grep,sedetc.