A Code and Style Guide #831
fourthborngoose
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Mr. Parker.
Does this look kind of like a good beginning to a Code and Style Guide? I am new to this and I really REALLY like your tool, and I hope to adapt this to my internal processes by adding new apps. You talked about it in here ( #586 )
✳️ Evergreen Application Contribution Code and Style Guide
🎯 Purpose
This guide provides internal standards and best practices for adding new application definitions to Evergreen, enabling consistent, secure, and maintainable contributions from our team.
It is based on guidance provided by the Evergreen creator and extends it with local conventions to support:
📁 Evergreen Project Overview
.ps1scripts for each supported application.Get-EvergreenApp,Save-EvergreenApp, etc.🧩 Contribution Workflow (Standard)
Fork the Evergreen repository
git clone https://github.com/aaronparker/evergreen.git cd evergreen git checkout -b feature/add-app-YourAppNameCreate New App Script
apps/YourAppName.ps1Create Matching Manifest (Optional)
manifests/YourAppName.json(used for cached version data)Test Your Code
Sign All Commits
Push and Submit PR
git push origin feature/add-app-YourAppName # Then open a pull request on GitHub✅ Coding Standards
File:
apps/YourAppName.ps1Get-YourAppNamefunction.New-EvergreenAppResultfor standardized formatting.Get-EvergreenAppandSave-EvergreenAppworkflows.Mandatory Structure
✅ Acceptable Methods
✅ Output Requirements
x.y.zoryyyy.mmx64,x86,armif applicable🧪 Testing Requirements
Pesterif adding test coverageGet-EvergreenApp -Name YourAppNamereturns expected resultSave-EvergreenAppsuccessfully downloads installer🔐 Security and Compliance
Invoke-RestMethodorInvoke-WebRequestmust include user-agent headers🧾 Naming Conventions
YourAppName.ps1Get-YourAppNameyour-app-name📋 Example Projects to Reference
apps/NotepadPlusPlus.ps1apps/VLCMediaPlayer.ps1apps/AdobeAcrobatReaderDC.ps1📬 Contributor Notes
Add:,Fix:,Update:🔄 Evergreen Pull Request Checklist
Beta Was this translation helpful? Give feedback.
All reactions