Skip to content

Commit 4e0185c

Browse files
authored
Merge pull request #9 from mdowst/simple_console
v1.0.0 Release
2 parents 528bd88 + 7a9bc07 commit 4e0185c

111 files changed

Lines changed: 10986 additions & 2280 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: build module
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-module:
11+
name: Run build and upload artifacts
12+
runs-on: windows-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-tags: true
17+
fetch-depth: 0
18+
19+
- name: Install Modules
20+
shell: pwsh
21+
run: |
22+
Set-PSRepository PSGallery -InstallationPolicy Trusted
23+
Install-Module ModuleBuilder,PSScriptAnalyzer,EZOut
24+
Install-Module Pester -MinimumVersion 5.5.0
25+
26+
- name: Run build
27+
shell: pwsh
28+
run: |
29+
$Version = git describe --tags --abbrev=0
30+
Write-Host "Version : $Version"
31+
.\tools\build.ps1 -Version $Version
32+
33+
- name: Upload artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: psnotes-build
37+
path: bin
38+
39+
- name: Build Tests
40+
shell: pwsh
41+
run: .\tools\tests-build.ps1
42+
43+
- name: Build Report
44+
uses: dorny/test-reporter@v2
45+
if: ${{ !cancelled() }}
46+
with:
47+
name: Build Tests
48+
path: 'bin/*.TestResults.xml'
49+
reporter: java-junit
50+
51+
test-module:
52+
needs: build-module
53+
name: Test Module
54+
runs-on: ${{ matrix.os }}
55+
strategy:
56+
matrix:
57+
os: [ubuntu-latest, windows-latest]
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: actions/download-artifact@v4
61+
with:
62+
path: bin
63+
pattern: psnotes-build
64+
merge-multiple: true
65+
- run: ls -R bin
66+
67+
- name: Install Modules
68+
shell: pwsh
69+
run: |
70+
Set-PSRepository PSGallery -InstallationPolicy Trusted
71+
Install-Module Pester -MinimumVersion 5.5.0
72+
Install-Module PSScriptAnalyzer
73+
74+
- name: Unit Tests
75+
shell: pwsh
76+
run: .\tools\tests.ps1
77+
78+
- name: Test Report
79+
uses: dorny/test-reporter@v2
80+
if: ${{ !cancelled() }}
81+
with:
82+
name: Pester Tests
83+
path: 'bin/*.TestResults.xml'
84+
reporter: java-junit

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
Publish/APIKey.json
2-
Publish/PSNotes/
3-
*.code-workspace
1+
*.code-workspace
2+
bin/
3+
Documentation/demos/*
4+
.vscode/*
5+
*/APIKey.json

Documentation/Commands.MD

Lines changed: 0 additions & 25 deletions
This file was deleted.

Documentation/Commands.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
document type: module
3+
Help Version: 1.0.0.0
4+
HelpInfoUri:
5+
Locale: en-US
6+
Module Guid: 040757f4-ee7b-4e93-9883-f6a1930b6966
7+
Module Name: PSNotes
8+
ms.date: 02/19/2026
9+
PlatyPS schema version: 2024-05-01
10+
title: PSNotes Module
11+
---
12+
13+
# PSNotes Module
14+
15+
## Description
16+
17+
PSNotes is a PowerShell module that provides a structured, versioned snippet and script library for reusable automation patterns. Create notes with aliases, tags, and metadata to quickly execute, copy, or preview commands. Organize notes into local or remote catalogs, search by name, tag, details, or snippet content, and turn frequently used automation into first-class commands.
18+
19+
## PSNotes
20+
21+
### [ConvertTo-Splatting](ConvertTo-Splatting.md)
22+
23+
Converts an existing PowerShell command into a splatting hashtable and splatted command.
24+
25+
### [Export-PSNote](Export-PSNote.md)
26+
27+
Exports PSNotes to a JSON file for backup or sharing.
28+
29+
### [Get-CommandSplatting](Get-CommandSplatting.md)
30+
31+
Generates a splatting template for a PowerShell command.
32+
33+
### [Get-PSNote](Get-PSNote.md)
34+
35+
Retrieves PSNotes from the note store by listing or searching.
36+
37+
### [Get-PSNoteAlias](Get-PSNoteAlias.md)
38+
39+
Resolves a PSNote by alias and outputs, copies, or executes its content.
40+
41+
### [Get-PSNoteMenu](Get-PSNoteMenu.md)
42+
43+
Displays an interactive, paged console menu for browsing and selecting PSNotes.
44+
45+
### [Get-RemoteCatalog](Get-RemoteCatalog.md)
46+
47+
Gets remote catalogs registered with PSNotes.
48+
49+
### [Import-PSNote](Import-PSNote.md)
50+
51+
Imports PSNotes from a JSON export file into the local note store.
52+
53+
### [Import-RemoteCatalog](Import-RemoteCatalog.md)
54+
55+
Registers a remote PSNotes catalog or imports it as a local catalog.
56+
57+
### [Initialize-PSNoteStore](Initialize-PSNoteStore.md)
58+
59+
Initializes the PSNotes store and required supporting files.
60+
61+
### [Move-PSNote](Move-PSNote.md)
62+
63+
Moves one or more PSNotes to a different catalog.
64+
65+
### [New-PSNote](New-PSNote.md)
66+
67+
Creates a new PSNote for storing reusable snippets or script references.
68+
69+
### [Remove-PSNote](Remove-PSNote.md)
70+
71+
Removes one or more PSNotes from the note store.
72+
73+
### [Remove-RemoteCatalog](Remove-RemoteCatalog.md)
74+
75+
Removes a remote catalog registration from PSNotes.
76+
77+
### [Set-PSNote](Set-PSNote.md)
78+
79+
Updates an existing PSNote or creates it if it does not already exist.
80+
81+
### [Update-PSNoteStore](Update-PSNoteStore.md)
82+
83+
Updates PSNotes catalogs to the latest format.
84+

Documentation/ConvertTo-Splatting.MD

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)