From e5ec335c14212c2479c201487c358e56a3f14e12 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 19 May 2026 03:20:19 +1000 Subject: Added default table formatters for various API model classes --- HyperBooru.format.ps1xml | 187 +++++++++++++++++++++++++++++++++++++++++++++++ HyperBooru.psd1 | 1 + PowerShell.csproj | 3 + 3 files changed, 191 insertions(+) create mode 100644 HyperBooru.format.ps1xml diff --git a/HyperBooru.format.ps1xml b/HyperBooru.format.ps1xml new file mode 100644 index 0000000..ab46bf5 --- /dev/null +++ b/HyperBooru.format.ps1xml @@ -0,0 +1,187 @@ + + + + + + HBSessionDefinitionDefaultView + + HyperBooru.ApiClient.HBSession + + + + + + + + + + + + BaseUri + + + + + + + + + TagDefinitionDefaultView + + HyperBooru.ApiModels.TagDefinition + + + + + + + + + + + + + + + + + + + + + TagDefinitionId + + + Alias + + + Namespace + + + Name + + + + + + + + + MediaDefaultView + + HyperBooru.ApiModels.Media + + + + + + + + + + + + + + + + + + MediaId + + + ShortDescription + + + LongDescription + + + + + + + + + UserDefaultView + + HyperBooru.ApiModels.User + + + + + + + + + + + + + + + UserId + + + Username + + + + + + + + + UploadedFileDefaultView + + HyperBooru.ApiModels.UploadedFile + + + + + + + + + + + + + + + + + + + + + + + + + + + UploadedFileId + + + MediaId + + + Checksum + + + Path + + + Filename + + + Length + + + + + + + + + diff --git a/HyperBooru.psd1 b/HyperBooru.psd1 index 63ac453..cfcc9e7 100644 --- a/HyperBooru.psd1 +++ b/HyperBooru.psd1 @@ -11,6 +11,7 @@ ProcessorArchitecture = 'MSIL' FunctionsToExport = '*' VariablesToExport = '*' + FormatsToProcess = 'HyperBooru.format.ps1xml' PrivateData = @{ PSData = @{ LicenseUri = 'https://www.gnu.org/licenses/gpl-3.0.en.html' diff --git a/PowerShell.csproj b/PowerShell.csproj index 241f948..cf8b11b 100644 --- a/PowerShell.csproj +++ b/PowerShell.csproj @@ -25,6 +25,9 @@ + + Always + Always -- cgit v1.3