From e648d011f5edfdc1261922ad3cc9e8ee18d0a67c Mon Sep 17 00:00:00 2001 From: Thumbscrew Date: Sat, 12 Mar 2022 22:27:27 +0000 Subject: [PATCH] rename Get-MatrixLoginToken to New-MatrixAccessToken --- PSMatrix.psd1 | 2 +- public/{Get-MatrixLoginToken.ps1 => New-MatrixAccessToken.ps1} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename public/{Get-MatrixLoginToken.ps1 => New-MatrixAccessToken.ps1} (97%) diff --git a/PSMatrix.psd1 b/PSMatrix.psd1 index 6f8409b..3ad5768 100644 --- a/PSMatrix.psd1 +++ b/PSMatrix.psd1 @@ -70,7 +70,7 @@ PowerShellVersion = '7.0' # 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. FunctionsToExport = @( - 'Get-MatrixLoginToken' + 'New-MatrixAccessToken' ) # 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. diff --git a/public/Get-MatrixLoginToken.ps1 b/public/New-MatrixAccessToken.ps1 similarity index 97% rename from public/Get-MatrixLoginToken.ps1 rename to public/New-MatrixAccessToken.ps1 index 6e1e6d9..62462b3 100644 --- a/public/Get-MatrixLoginToken.ps1 +++ b/public/New-MatrixAccessToken.ps1 @@ -16,7 +16,7 @@ $creds = Get-Credential $token = Get-LoginToken -ServerUrl "https://matrix.example.com" -Credentials $creds #> -function Get-MatrixLoginToken { +function New-MatrixAccessToken { param( [Parameter(Mandatory)] [string]$ServerUrl,