├── readme.md ├── psstrapi ├── psstrapi.psm1 ├── private │ └── func_Template.ps1 ├── public │ └── func_Template.ps1 └── psstrapi.psd1 └── license /readme.md: -------------------------------------------------------------------------------- 1 | # psstrapi 2 | PowerShell module to work with Strapi API's 3 | 4 | Author: Morten Johansen 5 | 6 | ## Usage 7 | * todo 8 | 9 | ## Functions 10 | * todo 11 | 12 | ## Changelog 13 | * 0.0.1 14 | * Initial release of module 15 | -------------------------------------------------------------------------------- /psstrapi/psstrapi.psm1: -------------------------------------------------------------------------------- 1 | Get-ChildItem (Split-Path $script:MyInvocation.MyCommand.Path) -Filter 'func_*.ps1' -Recurse | ForEach-Object { 2 | . $_.FullName 3 | } 4 | Get-ChildItem "$(Split-Path $script:MyInvocation.MyCommand.Path)\public\*" -Filter 'func_*.ps1' -Recurse | ForEach-Object { 5 | Export-ModuleMember -Function ($_.BaseName -Split "_")[1] 6 | } 7 | Get-ChildItem "$(Split-Path $script:MyInvocation.MyCommand.Path)\private\*" -Filter 'func_*.ps1' -Recurse | ForEach-Object { 8 | Export-ModuleMember -Function ($_.BaseName -Split "_")[1] 9 | } -------------------------------------------------------------------------------- /psstrapi/private/func_Template.ps1: -------------------------------------------------------------------------------- 1 | function FunctionTemplate { 2 | <# 3 | .SYNOPSIS 4 | A brief description of this function. 5 | .DESCRIPTION 6 | A detailed description of this function. 7 | .NOTES 8 | Name: FunctionTemplate 9 | Author: Some dude 10 | Version: 0.0.1 11 | DateCreated: dd.MM.y 12 | DateUpdated: dd.MM.y 13 | .EXAMPLE 14 | FunctionTemplate 15 | An example of this function's usage. 16 | #> 17 | [CmdletBinding()] 18 | Param ( 19 | $Template 20 | ) 21 | return $null; 22 | } -------------------------------------------------------------------------------- /psstrapi/public/func_Template.ps1: -------------------------------------------------------------------------------- 1 | function FunctionTemplate { 2 | <# 3 | .SYNOPSIS 4 | A brief description of this function. 5 | .DESCRIPTION 6 | A detailed description of this function. 7 | .NOTES 8 | Name: FunctionTemplate 9 | Author: Some dude 10 | Version: 0.0.1 11 | DateCreated: dd.MM.y 12 | DateUpdated: dd.MM.y 13 | .EXAMPLE 14 | FunctionTemplate 15 | An example of this function's usage. 16 | #> 17 | [CmdletBinding()] 18 | Param ( 19 | $Template 20 | ) 21 | return $null; 22 | } -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Morten Johansen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /psstrapi/psstrapi.psd1: -------------------------------------------------------------------------------- 1 | # 2 | # Module manifest for module 'psstrapi' 3 | # 4 | # Generated by: Morten Johansen 5 | # 6 | # Generated on: 23-10-2023 7 | # 8 | 9 | @{ 10 | 11 | # Script module or binary module file associated with this manifest. 12 | RootModule = 'psstrapi.psm1' 13 | 14 | # Version number of this module. 15 | ModuleVersion = '0.0.1' 16 | 17 | # Supported PSEditions 18 | # CompatiblePSEditions = @() 19 | 20 | # ID used to uniquely identify this module 21 | GUID = '8d33b54b-33ac-4123-bcf7-328744dfadcc' 22 | 23 | # Author of this module 24 | Author = 'Morten Johansen' 25 | 26 | # Company or vendor of this module 27 | CompanyName = 'Unknown' 28 | 29 | # Copyright statement for this module 30 | Copyright = '(c) Morten Johansen. All rights reserved.' 31 | 32 | # Description of the functionality provided by this module 33 | Description = 'PowerShell module to work with Strapi API''s' 34 | 35 | # Minimum version of the PowerShell engine required by this module 36 | # PowerShellVersion = '' 37 | 38 | # Name of the PowerShell host required by this module 39 | # PowerShellHostName = '' 40 | 41 | # Minimum version of the PowerShell host required by this module 42 | # PowerShellHostVersion = '' 43 | 44 | # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. 45 | # DotNetFrameworkVersion = '' 46 | 47 | # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. 48 | # ClrVersion = '' 49 | 50 | # Processor architecture (None, X86, Amd64) required by this module 51 | # ProcessorArchitecture = '' 52 | 53 | # Modules that must be imported into the global environment prior to importing this module 54 | # RequiredModules = @() 55 | 56 | # Assemblies that must be loaded prior to importing this module 57 | # RequiredAssemblies = @() 58 | 59 | # Script files (.ps1) that are run in the caller's environment prior to importing this module. 60 | # ScriptsToProcess = @() 61 | 62 | # Type files (.ps1xml) to be loaded when importing this module 63 | # TypesToProcess = @() 64 | 65 | # Format files (.ps1xml) to be loaded when importing this module 66 | # FormatsToProcess = @() 67 | 68 | # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess 69 | # NestedModules = @() 70 | 71 | # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. 72 | FunctionsToExport = '*' 73 | 74 | # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. 75 | CmdletsToExport = '*' 76 | 77 | # Variables to export from this module 78 | VariablesToExport = '*' 79 | 80 | # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. 81 | AliasesToExport = '*' 82 | 83 | # DSC resources to export from this module 84 | # DscResourcesToExport = @() 85 | 86 | # List of all modules packaged with this module 87 | # ModuleList = @() 88 | 89 | # List of all files packaged with this module 90 | # FileList = @() 91 | 92 | # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. 93 | PrivateData = @{ 94 | 95 | PSData = @{ 96 | 97 | # Tags applied to this module. These help with module discovery in online galleries. 98 | # Tags = @() 99 | 100 | # A URL to the license for this module. 101 | # LicenseUri = '' 102 | 103 | # A URL to the main website for this project. 104 | # ProjectUri = '' 105 | 106 | # A URL to an icon representing this module. 107 | # IconUri = '' 108 | 109 | # ReleaseNotes of this module 110 | # ReleaseNotes = '' 111 | 112 | # Prerelease string of this module 113 | # Prerelease = '' 114 | 115 | # Flag to indicate whether the module requires explicit user acceptance for install/update/save 116 | # RequireLicenseAcceptance = $false 117 | 118 | # External dependent modules of this module 119 | # ExternalModuleDependencies = @() 120 | 121 | } # End of PSData hashtable 122 | 123 | } # End of PrivateData hashtable 124 | 125 | # HelpInfo URI of this module 126 | # HelpInfoURI = '' 127 | 128 | # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. 129 | # DefaultCommandPrefix = '' 130 | 131 | } 132 | 133 | 134 | --------------------------------------------------------------------------------