Skip to content

Commit ec41995

Browse files
committed
after New-SampleModule
1 parent 77b2844 commit ec41995

19 files changed

+2706
-1
lines changed

.gitattributes

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
2+
* text eol=autocrlf
3+
4+
*.mof text eol=crlf
5+
*.sh text eol=lf
6+
*.svg eol=lf
7+
8+
# Ensure any exe files are treated as binary
9+
*.exe binary
10+
*.jpg binary
11+
*.xl* binary
12+
*.pfx binary
13+
*.png binary
14+
*.dll binary
15+
*.so binary

.gitignore

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1-
src/obj
21
src/bin
2+
src/obj
3+
4+
output/
5+
6+
**.bak
7+
*.local.*
8+
!**/README.md
9+
.kitchen/
10+
11+
*.nupkg
12+
*.suo
13+
*.user
14+
*.coverage
15+
.vs
16+
.psproj
17+
.sln
18+
markdownissues.txt
19+
node_modules
20+
package-lock.json

.vscode/tasks.json

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"version": "2.0.0",
3+
"_runner": "terminal",
4+
"windows": {
5+
"options": {
6+
"shell": {
7+
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
8+
"args": [
9+
"-NoProfile",
10+
"-ExecutionPolicy",
11+
"Bypass",
12+
"-Command"
13+
]
14+
}
15+
}
16+
},
17+
"linux": {
18+
"options": {
19+
"shell": {
20+
"executable": "/usr/bin/pwsh",
21+
"args": [
22+
"-NoProfile",
23+
"-Command"
24+
]
25+
}
26+
}
27+
},
28+
"osx": {
29+
"options": {
30+
"shell": {
31+
"executable": "/usr/local/bin/pwsh",
32+
"args": [
33+
"-NoProfile",
34+
"-Command"
35+
]
36+
}
37+
}
38+
},
39+
"tasks": [
40+
{
41+
"label": "build",
42+
"type": "shell",
43+
"command": "&${cwd}/build.ps1",
44+
"args": [],
45+
"presentation": {
46+
"echo": true,
47+
"reveal": "always",
48+
"focus": true,
49+
"panel": "new",
50+
"clear": false
51+
},
52+
"runOptions": {
53+
"runOn": "default"
54+
},
55+
"problemMatcher": [
56+
{
57+
"owner": "powershell",
58+
"fileLocation": [
59+
"absolute"
60+
],
61+
"severity": "error",
62+
"pattern": [
63+
{
64+
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
65+
"message": 1
66+
},
67+
{
68+
"regexp": "(.*)",
69+
"code": 1
70+
},
71+
{
72+
"regexp": ""
73+
},
74+
{
75+
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
76+
"file": 1,
77+
"line": 2
78+
}
79+
]
80+
}
81+
]
82+
},
83+
{
84+
"label": "test",
85+
"type": "shell",
86+
"command": "&${cwd}/build.ps1",
87+
"args": ["-AutoRestore","-Tasks","test"],
88+
"presentation": {
89+
"echo": true,
90+
"reveal": "always",
91+
"focus": true,
92+
"panel": "dedicated",
93+
"showReuseMessage": true,
94+
"clear": false
95+
},
96+
"problemMatcher": [
97+
{
98+
"owner": "powershell",
99+
"fileLocation": [
100+
"absolute"
101+
],
102+
"severity": "error",
103+
"pattern": [
104+
{
105+
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
106+
"message": 1
107+
},
108+
{
109+
"regexp": "(.*)",
110+
"code": 1
111+
},
112+
{
113+
"regexp": ""
114+
},
115+
{
116+
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
117+
"file": 1,
118+
"line": 2
119+
}
120+
]
121+
}
122+
]
123+
}
124+
]
125+
}

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Changelog for binary-powershell-cmdlet-example
2+
3+
The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
6+
## [Unreleased]
7+
8+
### Added
9+
10+
- For new features.
11+
12+
### Changed
13+
14+
- For changes in existing functionality.
15+
16+
### Deprecated
17+
18+
- For soon-to-be removed features.
19+
20+
### Removed
21+
22+
- For now removed features.
23+
24+
### Fixed
25+
26+
- For any bug fix.
27+
28+
### Security
29+
30+
- In case of vulnerabilities.
31+

GitVersion.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
mode: ContinuousDelivery
2+
next-version: 0.0.1
3+
major-version-bump-message: '(breaking\schange|breaking|major)\b'
4+
minor-version-bump-message: '(adds?|features?|minor)\b'
5+
patch-version-bump-message: '\s?(fix|patch)'
6+
no-bump-message: '\+semver:\s?(none|skip)'
7+
assembly-informational-format: '{NuGetVersionV2}+Sha.{Sha}.Date.{CommitDate}'
8+
branches:
9+
master:
10+
tag: preview
11+
regex: ^main$
12+
pull-request:
13+
tag: PR
14+
feature:
15+
tag: useBranchName
16+
increment: Minor
17+
regex: f(eature(s)?)?[\/-]
18+
source-branches: ['master']
19+
hotfix:
20+
tag: fix
21+
increment: Patch
22+
regex: (hot)?fix(es)?[\/-]
23+
source-branches: ['master']
24+
25+
ignore:
26+
sha: []
27+
merge-message-formats: {}
28+
29+
30+
# feature:
31+
# tag: useBranchName
32+
# increment: Minor
33+
# regex: f(eature(s)?)?[/-]
34+
# source-branches: ['master']
35+
# hotfix:
36+
# tag: fix
37+
# increment: Patch
38+
# regex: (hot)?fix(es)?[/-]
39+
# source-branches: ['master']
40+

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# binary-powershell-cmdlet-example
2+
3+
Simple example of binary powershell cmdlet
4+
5+
## Make it yours
6+
7+
---
8+
Generated with Plaster and the SampleModule template
9+
10+
11+
This is a sample Readme
12+
13+
## Make it yours

RequiredModules.psd1

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@{
2+
<#
3+
This is only required if you need to use the method PowerShellGet & PSDepend
4+
It is not required for PSResourceGet or ModuleFast (and will be ignored).
5+
See Resolve-Dependency.psd1 on how to enable methods.
6+
#>
7+
#PSDependOptions = @{
8+
# AddToPath = $true
9+
# Target = 'output\RequiredModules'
10+
# Parameters = @{
11+
# Repository = 'PSGallery'
12+
# }
13+
#}
14+
15+
InvokeBuild = 'latest'
16+
PSScriptAnalyzer = 'latest'
17+
Pester = 'latest'
18+
ModuleBuilder = 'latest'
19+
ChangelogManagement = 'latest'
20+
Sampler = 'latest'
21+
'Sampler.GitHubTasks' = 'latest'
22+
23+
24+
}
25+

0 commit comments

Comments
 (0)