Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Changelog

> - v0.0.1, 26.11.2020 -- Initial release.
> - v0.0.2, 06.01.2021
> - Changed url's to new github repo.
> - Added code signing step in build process.
> - Signed module with a code signing certificate.

> - v0.0.1, 26.11.2020
> - Initial release.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ We use `<MAJOR>.<MINOR>.<PATCH>` as versioning policy.
<Patch> = Backwards Compatible / Bug Fixes
```

For the versions available, see the [tags on this repository](https://github.com/netcloudag/powershell-cli-menu-helpers/tags).
For the versions available, see the [tags on this repository](https://github.com/netcloud/powershell-cli-menu-helpers/tags).

### Coding Convention

Expand Down
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# powershell cli menu helpers

[[_TOC_]]
- [powershell cli menu helpers](#powershell-cli-menu-helpers)
- [Introduction](#introduction)
- [Installation](#installation)
- [From PowerShell Gallery](#from-powershell-gallery)
- [From Source](#from-source)
- [Usage](#usage)
- [Menu rendering](#menu-rendering)
- [List rendering](#list-rendering)
- [Table rendering](#table-rendering)
- [Example](#example)
- [Contributing](#contributing)
- [Creating a release](#creating-a-release)
- [Requirements](#requirements)
- [Steps](#steps)
- [Authors](#authors)
- [License](#license)

## Introduction

Expand Down Expand Up @@ -31,7 +46,7 @@ Install-Module -Name 'powershell-cli-menu-helpers'
- Obtain the source

```
git clone https://github.com/netcloudag/powershell-cli-menu-helpers.git
git clone https://github.com/netcloud/powershell-cli-menu-helpers.git
```

- Navigate to the source directory
Expand Down Expand Up @@ -146,7 +161,7 @@ cd .\example\

## Contributing

Contributions are welcome, please refere to [CONTRIBUTING.md](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/CONTRIBUTING.md) for details.
Contributions are welcome, please refere to [CONTRIBUTING.md](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/CONTRIBUTING.md) for details.

## Creating a release

Expand All @@ -161,8 +176,8 @@ Install-Module -Name 'PSScriptAnalyzer'

- Add / modify the test cases inside the folder `.\tests`
- Run the tests (`.\test.ps1`)
- Update the [CHANGELOG.md](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/CHANGELOG.md)
- Update the `ModuleVersion` inside the [config.json](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/config.json)
- Update the [CHANGELOG.md](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/CHANGELOG.md)
- Update the `ModuleVersion` inside the [config.json](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/config.json)
- Add release tag on github
- Run the script `.\build.ps1` to create a new build
- Run the scirpt `.\publish.ps1` to publish the build to PowerShell Gallery
Expand All @@ -175,4 +190,4 @@ Install-Module -Name 'PSScriptAnalyzer'
## License

This project is licensed under MIT with Copyright (c) 2020 Netcloud AG. \
See the [LICENSE.md](https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/LICENSE.md) file for details.
See the [LICENSE.md](https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/LICENSE.md) file for details.
15 changes: 15 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#Requires -Version 5.1
$ErrorActionPreference = 'Stop'

# Get cert path
[System.String]$CertPath = Read-Host -Prompt 'Please enter cert path (Cert:\CurrentUser\My\71C28FC065F(...)367825B1AF)'

if (-not (Test-Path -Path $CertPath)) {
Write-Host -Object "Cert $CertPath not found!"
return
}

$Cert = Get-Item -Path $CertPath

# Remove old build if available
if (Test-Path -Path '.\build') {
Remove-Item -Path '.\build' -Recurse -Force
Expand Down Expand Up @@ -40,4 +50,9 @@ Set-Content -Path ('.\build\' + $Config.ModuleName + '\' + $Config.ModuleName +
# Create the powershell module
foreach ($Funciton in (Get-ChildItem -Path '.\functions')) {
Get-Content -Path $Funciton.FullName -Raw | Add-Content -Path ('.\build\' + $Config.ModuleName + '\' + $Config.ModuleName + '.psm1')
}

# Sign the generated files
foreach ($File in (Get-ChildItem -Path '.\build\*' -Recurse)) {
Set-AuthenticodeSignature -FilePath $File.FullName -Certificate $Cert -TimestampServer 'http://timestamp.digicert.com'
}
17 changes: 10 additions & 7 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"ModuleName": "powershell-cli-menu-helpers",
"ModuleVersion": "0.0.1",
"ModuleVersion": "0.0.2",
"GUID": "2876be78-754c-4b00-b390-d871c61ce66b",
"Author": "Patrick Grazioli",
"CompanyName": "Netcloud AG",
"Copyright": "2020 Netcloud AG. All rights reserved.",
"LicenseUri": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/LICENSE.md",
"Description": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/README.md",
"LicenseUri": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/LICENSE.md",
"Description": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/README.md",
"PowerShellVersion": "5.1",
"ProjectUri": "https://github.com/netcloudag/powershell-cli-menu-helpers",
"ReleaseNotes": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/CHANGELOG.md",
"ProjectUri": "https://github.com/netcloud/powershell-cli-menu-helpers",
"ReleaseNotes": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/CHANGELOG.md",
"Tags": [
"cli-menu",
"menu",
"select-item",
"list-item",
"filter-item",
"cli-menu-helpers"
"cli-menu-helpers",
"cli",
"select",
"filter"
],
"IconUri": "https://github.com/netcloudag/powershell-cli-menu-helpers/blob/master/assets/images/ncdev_logo.png"
"IconUri": "https://github.com/netcloud/powershell-cli-menu-helpers/blob/master/assets/images/ncdev_logo.png"
}
2 changes: 1 addition & 1 deletion functions/Select-ItemFromList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

.LINK
https://github.com/netcloudag/powershell-cli-menu-helpers
https://github.com/netcloud/powershell-cli-menu-helpers
#>
[OutputType([System.Management.Automation.PSObject[]])]
Param(
Expand Down
2 changes: 1 addition & 1 deletion functions/Select-ItemFromTable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}

.LINK
https://github.com/netcloudag/powershell-cli-menu-helpers
https://github.com/netcloud/powershell-cli-menu-helpers
#>
[OutputType([System.Management.Automation.PSObject[]])]
Param(
Expand Down
2 changes: 1 addition & 1 deletion functions/Select-MenuEntryFromList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}

.LINK
https://github.com/netcloudag/powershell-cli-menu-helpers
https://github.com/netcloud/powershell-cli-menu-helpers
#>
[OutputType([System.Management.Automation.PSObject[]])]
Param(
Expand Down