Skip to content
This repository was archived by the owner on Apr 4, 2022. It is now read-only.

Commit 9811606

Browse files
Merge pull request #16 from techthoughts2/Enhancements
Enhancements
2 parents c2fb09d + 01fdf8b commit 9811606

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3518
-2788
lines changed

.github/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Diag-V Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [3.0.2]
9+
10+
- Removed unnecessary link from all help entries
11+
- Updated build process to latest standards (*no functional changes*)
12+
- Updated gitignore
13+
- Bumped install modules to latest versions
14+
- Added GitHub community files (changelog/code of conduct / contributing / templates)
15+
- Added vscode files
16+
- Updated InvokeBuild file for project
17+
- Separated public function tests from monolithic test file into separate test files
18+
- Updated link to tecthoughts site to have https instead of http
19+
20+
## [3.0.1]
21+
22+
- Fixed bug where Get-AllVHD was returning duplicated VHD results
23+
24+
## [3.0.0]
25+
26+
- Added Pester tests for all functions.
27+
- Re-wrote all functions from previous module versions to account for bugs and layout of new tests. Removed Write-Host - all functions now return PowerShell objects.
28+
- Fixed numerous bugs.
29+
- Added additional functionality to several functions. Some functions were renamed to more clearly indicate what they are now capable of.
30+
- Adjusted layout of Diag-V module to CI/CD standards.
31+
- Added code to support AWS Codebuild.
32+
- Added new icon.
33+
- Rewrote all documentation to capture new changes and capabilities.
34+
35+
## [2.0]
36+
37+
- Complete re-write from original script version.
38+
- Converted Diag-V from a ps1 PowerShell script to a fully supported PowerShell module.
39+
- Redesigned all diagnostic functions:
40+
- Improved error control, General bug fixes, Better readability, Added new Hyper-V log parser function.
41+
42+
## [1.0]
43+
44+
- Initial .ps1 script version of Diag-V.

.github/CODE_OF_CONDUCT.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at tech@techthoughts.info. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html)
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq)

.github/CONTRIBUTING.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Contributing
2+
3+
Thanks for your interest in contributing to the **Diag-V Project**.
4+
5+
Whether it's a bug report, new feature, correction, or additional documentation, your feedback and contributions are appreciated.
6+
7+
Please read through this document before submitting any issues or pull requests to ensure all the necessary information is provided to effectively respond to your bug report or contribution.
8+
9+
Please note there is a code of conduct, please follow it in all your interactions with the project.
10+
11+
## Reporting Bugs/Feature Requests
12+
13+
When filing an issue, please check [existing open](https://github.com/techthoughts2/Diag-V/issues), or [recently closed](https://github.com/techthoughts2/Diag-V/issues?q=is%3Aissue+is%3Aclosed), issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
14+
15+
* A reproducible test case or series of steps
16+
* The version of code being used
17+
* Any modifications you've made relevant to the bug
18+
* Anything unusual about your environment or deployment
19+
20+
## Contributing via Pull Requests
21+
22+
Contributions via pull requests are much appreciated. Before sending a pull request, please ensure that:
23+
24+
1. You are working against the latest source on the *Enhancements* branch.
25+
1. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
26+
1. You open an issue to discuss any work - I'd hate for your time to be wasted.
27+
28+
To send a pull request, please:
29+
30+
1. Create an issue and discuss the change.
31+
1. Fork the repository.
32+
1. Checkout the *Enhancements* branch
33+
1. Modify the source; please focus on the specific change you are contributing. Please refrain from code styling changes, it will be harder to focus on your change.
34+
1. Ensure local tests pass.
35+
1. Commit to your fork using clear commit messages with the issue # being fixed.
36+
1. Send a pull request, answering any default questions in the pull request interface.
37+
38+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
39+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
40+
41+
## Finding contributions to work on
42+
43+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/techthoughts2/Diag-V/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) issues is a great place to start.
44+
45+
## Code of Conduct
46+
47+
This project has a [Code of Conduct](CODE_OF_CONDUCT.md).
48+
49+
## Licensing
50+
51+
See the [LICENSE](LICENSE.txt) file for our project's licensing.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug Report
3+
about: Submit a bug to Diag-V project
4+
title: 'Diag-V bug issue'
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
<!--- Provide a general summary of the issue in the Title above -->
11+
12+
### Expected Behavior
13+
<!--- Tell us what should happen -->
14+
15+
### Current Behavior
16+
<!--- Tell us what happens instead of the expected behavior -->
17+
18+
### Possible Solution
19+
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
20+
21+
### Steps to Reproduce
22+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
23+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
24+
1.
25+
2.
26+
3.
27+
4.
28+
29+
### Context (Environment)
30+
<!--- How has this issue affected you? What are you trying to accomplish? -->
31+
<!--- Include as many relevant details about the environment where the bug was discovered. -->
32+
* Operating System and version as reported by `$PSVersionTable.OS`:
33+
* PowerShell versions as reported by `$PSVersionTable.PSEdition`:
34+
35+
<!--- Provide a general summary of the issue in the Title above -->
36+
37+
### Detailed Description
38+
<!--- Provide a detailed description of the issue you are facing -->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for Diag-V project
4+
title: 'Diag-V Feature request'
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
### Description
11+
<!--- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
### Describe the solution you'd like
14+
<!--- A clear and concise description of what you want to happen. -->
15+
16+
### Describe any alternatives you've considered
17+
<!--- A clear and concise description of any alternative solutions or features you've considered. -->
18+
19+
### Additional context
20+
<!--- Add any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Pull Request
2+
3+
**IMPORTANT: Please do not create a Pull Request without creating an issue first.**
4+
5+
## Issue
6+
7+
**(REQUIRED)** Issue #:
8+
9+
### Closing Issues
10+
11+
Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes.
12+
13+
## Description
14+
15+
Description of changes:
16+
17+
<!-- Please provide enough information so that others can review your pull request -->
18+
19+
## License
20+
21+
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
Archive
22
Artifacts
3-
.vscode
4-
cov.xml
3+
cov.xml
4+
# OS generated files #
5+
######################
6+
.DS_Store
7+
.DS_Store?
8+
._*
9+
.Spotlight-V100
10+
.Trashes
11+
ehthumbs.db
12+
Thumbs.db

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"ms-vscode.PowerShell",
6+
"ryanluker.vscode-coverage-gutters",
7+
"DavidAnson.vscode-markdownlint"
8+
]
9+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"files.trimTrailingWhitespace": true,
3+
"powershell.codeFormatting.preset":"Stroustrup"
4+
}

.vscode/tasks.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Available variables which can be used inside of strings.
2+
// ${workspaceRoot}: the root folder of the team
3+
// ${file}: the current opened file
4+
// ${relativeFile}: the current opened file relative to workspaceRoot
5+
// ${fileBasename}: the current opened file's basename
6+
// ${fileDirname}: the current opened file's dirname
7+
// ${fileExtname}: the current opened file's extension
8+
// ${cwd}: the current working directory of the spawned process
9+
{
10+
// See https://go.microsoft.com/fwlink/?LinkId=733558
11+
// for the documentation about the tasks.json format
12+
"version": "2.0.0",
13+
// Start PowerShell
14+
"windows": {
15+
//"command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe",
16+
"command": "${env:ProgramFiles}/PowerShell/6/pwsh.exe",
17+
//"command": "${env:ProgramFiles}/PowerShell/7-preview/pwsh.exe",
18+
"args": [
19+
"-NoProfile",
20+
"-ExecutionPolicy",
21+
"Bypass"
22+
]
23+
},
24+
"linux": {
25+
"command": "/usr/bin/powershell",
26+
"args": [
27+
"-NoProfile"
28+
]
29+
},
30+
"osx": {
31+
"command": "/usr/local/bin/powershell",
32+
"args": [
33+
"-NoProfile"
34+
]
35+
},
36+
// Associate with test task runner
37+
"tasks": [
38+
{
39+
"label": "Test",
40+
"group": {
41+
"kind": "test",
42+
"isDefault": true
43+
},
44+
"command": [
45+
"Write-Host 'Invoking Pester...'; $ProgressPreference = 'SilentlyContinue'; Invoke-Pester -Script test -PesterOption @{IncludeVSCodeMarker=$true};",
46+
"Invoke-Command { Write-Host 'Completed Test task in task runner.' }"
47+
],
48+
"problemMatcher": "$pester"
49+
},
50+
{
51+
"label": "Build",
52+
"type": "shell",
53+
"group": {
54+
"kind": "build",
55+
"isDefault": true
56+
},
57+
"command": "$psversiontable;Invoke-Build"
58+
}
59+
]
60+
}

0 commit comments

Comments
 (0)