11@ {
2- ' Microsoft.PowerShell.ConsoleGuiTools' = ' latest'
3- }
2+ # ─────────────────────────────────────────────────────────────────
3+ # Global options — these apply to every dependency unless overridden
4+ # ─────────────────────────────────────────────────────────────────
5+ # PSDependOptions = @{
6+ # Target = 'CurrentUser' # 'CurrentUser', 'AllUsers', or a file path
7+ # AddToPath = $true # Add Target to $env:PSModulePath
8+ # DependencyType = 'PSGalleryModule' # Default type if not specified per-entry
9+ # Tags = @('Build', 'Test') # Only process deps matching these tags
10+ # }
11+
12+ # ─────────────────────────────────────────────────────────────────
13+ # Simple format — module name = version string
14+ # ─────────────────────────────────────────────────────────────────
15+ # 'MyModuleName' = 'latest' # Always pull the newest version
16+ # 'AnotherModule' = '2.4.1' # Pin to an exact version
17+ # 'YetAnotherModule' = '1.*' # Wildcard — latest 1.x release
18+
19+ # ─────────────────────────────────────────────────────────────────
20+ # Hashtable format — PSGallery module with extra options
21+ # ─────────────────────────────────────────────────────────────────
22+ # 'MyGalleryModule' = @{
23+ # DependencyType = 'PSGalleryModule' # Explicit (this is also the default)
24+ # Version = '3.0.0'
25+ # Target = 'CurrentUser'
26+ # Tags = @('Build')
27+ # Parameters = @{
28+ # SkipPublisherCheck = $true
29+ # AllowClobber = $true
30+ # Repository = 'PSGallery' # Use a named repo
31+ # }
32+ # }
33+
34+ # ─────────────────────────────────────────────────────────────────
35+ # PSGallery NuGet dependency (uses NuGet directly instead of
36+ # Install-Module — handy for build servers without PowerShellGet)
37+ # ─────────────────────────────────────────────────────────────────
38+ # 'MyNuGetModule' = @{
39+ # DependencyType = 'PSGalleryNuget'
40+ # Version = '1.2.0'
41+ # Target = 'C:\BuildAgent\Modules'
42+ # }
43+
44+ # ─────────────────────────────────────────────────────────────────
45+ # Git repository dependency
46+ # ─────────────────────────────────────────────────────────────────
47+ # 'MyGitModule' = @{
48+ # DependencyType = 'Git'
49+ # Version = 'main' # Branch, tag, or commit hash
50+ # Source = 'https://github.com/myorg/MyGitModule.git'
51+ # Target = 'C:\Modules\MyGitModule'
52+ # }
53+
54+ # ─────────────────────────────────────────────────────────────────
55+ # FileSystem dependency — copy a local folder or file
56+ # ─────────────────────────────────────────────────────────────────
57+ # 'MyLocalModule' = @{
58+ # DependencyType = 'FileSystem'
59+ # Source = 'C:\Source\MyLocalModule'
60+ # Target = 'C:\Deploy\Modules\MyLocalModule'
61+ # }
62+
63+ # ─────────────────────────────────────────────────────────────────
64+ # Command dependency — run an arbitrary script/command
65+ # (useful for bootstrapping tools that aren't PS modules)
66+ # ─────────────────────────────────────────────────────────────────
67+ # 'InstallDotNetSdk' = @{
68+ # DependencyType = 'Command'
69+ # Source = 'dotnet-install.ps1 -Channel 8.0'
70+ # Tags = @('Build')
71+ # }
72+
73+ # ─────────────────────────────────────────────────────────────────
74+ # Package dependency — uses PackageManagement / OneGet
75+ # ─────────────────────────────────────────────────────────────────
76+ # 'MyPackage' = @{
77+ # DependencyType = 'Package'
78+ # Source = 'nuget' # Provider name
79+ # Version = '4.1.0'
80+ # Target = 'C:\Packages'
81+ # Parameters = @{
82+ # ForceBootstrap = $true
83+ # }
84+ # }
85+
86+ # ─────────────────────────────────────────────────────────────────
87+ # Multiple dependencies with shared tags — useful for grouping
88+ # e.g. invoke only "Test" deps: Invoke-PSDepend -Tags 'Test'
89+ # ─────────────────────────────────────────────────────────────────
90+ # 'TestFrameworkModule' = @{
91+ # Version = '5.4.0'
92+ # Tags = @('Test')
93+ # }
94+ # 'MockingModule' = @{
95+ # Version = '1.0.0'
96+ # Tags = @('Test')
97+ # }
98+ # 'BuildHelperModule' = @{
99+ # Version = 'latest'
100+ # Tags = @('Build')
101+ # }
102+
103+ # ─────────────────────────────────────────────────────────────────
104+ # Credential-protected dependency (private gallery / feed)
105+ # ─────────────────────────────────────────────────────────────────
106+ # 'MyPrivateModule' = @{
107+ # DependencyType = 'PSGalleryModule'
108+ # Version = '2.0.0'
109+ # Parameters = @{
110+ # Repository = 'MyPrivateFeed'
111+ # Credential = $MyCredentialVariable # Pass in at runtime
112+ # }
113+ # }
114+ }
0 commit comments