You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add initial project structure and enhance testing framework (#5)
* added csproj and base files.
* add 'Out' directory to .gitignore
* updated Get-CidrFromSubnetMask to validate a proper subnetmask.
updated Get-SubnetMaskFromCidr to thow on invalid cidr
* updated required pester version
* unit-test file
* unit test helper
* Enhance Get-CidrFromSubnetMask to count bits in subnet mask and improve Test-SubnetMask validation
* Add Convert-Network cmdlet to module export list
* Add tests for Convert-Network cmdlet and enhance setup for Pester configuration
* Add PSScriptAnalyzer workflow for code quality checks
* Enhance CI workflow by adding .NET setup and Pester test execution
* Add issue templates for bug reports and feature requests
* Update README.md to enhance project overview, features, installation, usage examples, and contribution guidelines
* Remove outdated support instructions and streamline issue reporting in SUPPORT.md
* Fix installation instructions in README.md to correctly reference module path
* Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Nick Liu <105009141+liunick-msft@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
-@azure Rule - Use Azure Best Practices: When generating code for Azure, running terminal commands for Azure, or performing operations related to Azure, invoke your `get_azure_best_practices` tool if available.
As the maintainer of this project, please make a few updates:
6
+
## Overview
7
7
8
-
- Improving this README.MD file to provide a great experience
9
-
- Updating SUPPORT.MD with content about this project's support experience
10
-
- Understanding the security reporting process in SECURITY.MD
11
-
- Remove this section from the README
8
+
`Microsoft.AzureStack.Util.ConvertNetwork` is a PowerShell module that provides utilities for working with IPv4 networks. It includes functions to calculate subnet masks, CIDR values, broadcast addresses, and more. This project is designed to simplify network-related operations for developers and IT professionals.
9
+
10
+
## Features
11
+
12
+
- Convert CIDR to subnet masks and vice versa.
13
+
- Calculate network and broadcast addresses.
14
+
- Validate subnet masks and IP addresses.
15
+
- Generate subnets from a given network.
16
+
- Perform IP address calculations with ease.
17
+
18
+
## Table of Contents
19
+
20
+
-[Installation](#installation)
21
+
-[Usage](#usage)
22
+
-[Contributing](#contributing)
23
+
-[License](#license)
24
+
-[Support](#support)
25
+
-[Code of Conduct](#code-of-conduct)
26
+
27
+
## Installation
28
+
29
+
To install the module, clone this repository and import the module into your PowerShell session:
For more examples, see the [tests](tests/ConvertNetwork.Tests.ps1).
169
+
170
+
## License
171
+
172
+
This project is licensed under the [MIT License](LICENSE).
173
+
174
+
## Support
175
+
176
+
If you encounter any issues or have questions, please file an issue in the [GitHub Issues](https://github.com/microsoft/Microsoft.AzureStack.Util.ConvertNetwork/issues) section.
12
177
13
178
## Contributing
14
179
180
+
We welcome contributions! To get started, follow these steps:
181
+
182
+
1. Fork the repository.
183
+
2. Create a new branch for your feature or bug fix.
184
+
3. Commit your changes and submit a pull request.
185
+
15
186
This project welcomes contributions and suggestions. Most contributions require you to agree to a
16
187
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
17
188
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
@@ -24,6 +195,15 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
24
195
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
25
196
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
26
197
198
+
## Code of Conduct
199
+
200
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or concerns.
201
+
202
+
## Acknowledgments
203
+
204
+
-[Pester](https://github.com/pester/Pester) for unit testing.
205
+
- Microsoft for supporting this open-source initiative.
206
+
27
207
## Trademarks
28
208
29
209
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
0 commit comments