Skip to content

Commit

Permalink
7.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
karamem0 committed Mar 26, 2024
1 parent 2b7d673 commit 500834f
Show file tree
Hide file tree
Showing 1,121 changed files with 1,280 additions and 1,327 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml → .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
- v*.*.*

env:
BUILD_VERSION: 5.4.0.${{github.run_number}}
BUILD_VERSION: '7.0.0'

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repos
uses: actions/checkout@v3
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore source
run: |
dotnet restore ${{env.TARGET_FILE}}
Expand All @@ -34,8 +34,8 @@ jobs:
dotnet publish ${{env.TARGET_FILE}} `
-c Release `
-p:PublishDir=build `
-p:Version=${{env.BUILD_VERSION}} `
-p:FileVersion=${{env.BUILD_VERSION}}
-p:Version=${{env.BUILD_VERSION}}.${{github.run_number}} `
-p:FileVersion=${{env.BUILD_VERSION}}.${{github.run_number}}
env:
TARGET_FILE: source/Karamem0.SPClientCore/Karamem0.SPClientCore.csproj
- name: Update .config.json file
Expand All @@ -50,15 +50,15 @@ jobs:
shell: pwsh
run: |
$xml = [xml](Get-Content -Path "${{env.TARGET_FILE}}")
$xml.package.metadata.version = "${{env.BUILD_VERSION}}"
$xml.package.metadata.version = "${{env.BUILD_VERSION}}.${{github.run_number}}"
$xml.Save("${{env.TARGET_FILE}}")
env:
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.nuspec
- name: Update .psd1 file
shell: pwsh
run: |
Import-Module -Name (Resolve-Path -Path "${{env.TARGET_FILE}}")
Update-ModuleManifest -Path "${{env.TARGET_FILE}}" -ModuleVersion "${{env.BUILD_VERSION}}" -CmdletsToExport (Get-Command -Module SPClientCore | %{ $_.Name })
Update-ModuleManifest -Path "${{env.TARGET_FILE}}" -ModuleVersion "${{env.BUILD_VERSION}}.${{github.run_number}}" -CmdletsToExport (Get-Command -Module SPClientCore | %{ $_.Name })
env:
TARGET_FILE: source/Karamem0.SPClientCore/build/SPClientCore.psd1
- name: Upload artifact
Expand All @@ -69,7 +69,7 @@ jobs:
publish:
needs: build
if: contains(github.ref, 'refs/tags/')
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
Expand All @@ -79,14 +79,14 @@ jobs:
- name: Archive artifact
shell: pwsh
run: |
Compress-Archive -Path SPClientCore/* -DestinationPath SPClientCore_${{env.BUILD_VERSION}}.zip
Compress-Archive -Path SPClientCore/* -DestinationPath SPClientCore_${{env.BUILD_VERSION}}.${{github.run_number}}.zip
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
files: |
SPClientCore_${{env.BUILD_VERSION}}.zip
SPClientCore_${{env.BUILD_VERSION}}.${{github.run_number}}.zip
- name: Publish to PowerShell Gallery
shell: pwsh
run: |
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 karamem0
Copyright (c) 2018-2024 karamem0

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
216 changes: 108 additions & 108 deletions docs/Add-KshStorageEntity.md
Original file line number Diff line number Diff line change
@@ -1,108 +1,108 @@
---
external help file: SPClientCore.dll-Help.xml
Module Name: SPClientCore
online version:
schema: 2.0.0
---

# Add-KshStorageEntity

## SYNOPSIS
Creates a new storage entity.

## SYNTAX

```
Add-KshStorageEntity -Key <String> -Value <String> [-Description <String>] [-Comment <String>]
[<CommonParameters>]
```

## DESCRIPTION
The Add-KshStorageEntity cmdlet adds a new storage entity to the current site.
The site must be a tenant app catalog site or a site collection app catalog site.

## EXAMPLES

### Example 1
```powershell
PS C:\> Add-KshStorageEntity -Key 'Copyright' -Value 'Copyright (c) 2023 karamem0'
```

Creates a storage entity.

## PARAMETERS

### -Comment
Specifies the comment.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Description
Specifies the description.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Key
Specifies the key.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Value
Specifies the value.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### None
## OUTPUTS
### None
## NOTES
## RELATED LINKS
---
external help file: SPClientCore.dll-Help.xml
Module Name: SPClientCore
online version:
schema: 2.0.0
---

# Add-KshStorageEntity

## SYNOPSIS
Creates a new storage entity.

## SYNTAX

```
Add-KshStorageEntity -Key <String> -Value <String> [-Description <String>] [-Comment <String>]
[<CommonParameters>]
```

## DESCRIPTION
The Add-KshStorageEntity cmdlet adds a new storage entity to the current site.
The site must be a tenant app catalog site or a site collection app catalog site.

## EXAMPLES

### Example 1
```powershell
PS C:\> Add-KshStorageEntity -Key 'Copyright' -Value 'Copyright (c) 2018-2024 karamem0'
```

Creates a storage entity.

## PARAMETERS

### -Comment
Specifies the comment.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Description
Specifies the description.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Key
Specifies the key.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Value
Specifies the value.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### None
## OUTPUTS
### None
## NOTES
## RELATED LINKS
4 changes: 2 additions & 2 deletions scripts/SPClientCore.Tests.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023 karamem0
# Copyright (c) 2018-2024 karamem0
#
# This software is released under the MIT License.
#
Expand All @@ -24,7 +24,7 @@ Author = 'karamem0'
CompanyName = 'karamem0'

# Copyright statement for this module
Copyright = 'Copyright (c) 2023 karamem0'
Copyright = 'Copyright (c) 2018-2024 karamem0'

# Description of the functionality provided by this module
Description = 'SharePoint Service Module for PowerShell'
Expand Down
2 changes: 1 addition & 1 deletion scripts/SPClientCore.Tests.psm1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2023 karamem0
# Copyright (c) 2018-2024 karamem0
#
# This software is released under the MIT License.
#
Expand Down
3 changes: 3 additions & 0 deletions source/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

# CA1861: Avoid constant arrays as arguments
dotnet_diagnostic.CA1861.severity = none

# IDE0005: Using directive is unnecessary
dotnet_diagnostic.IDE0005.severity = none
# IDE0010: Add missing cases to switch statement
Expand Down
2 changes: 1 addition & 1 deletion source/Karamem0.SPClientCore.Tests/AddAlertCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2023 karamem0
// Copyright (c) 2018-2024 karamem0
//
// This software is released under the MIT License.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2023 karamem0
// Copyright (c) 2018-2024 karamem0
//
// This software is released under the MIT License.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2023 karamem0
// Copyright (c) 2018-2024 karamem0
//
// This software is released under the MIT License.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2023 karamem0
// Copyright (c) 2018-2024 karamem0
//
// This software is released under the MIT License.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2023 karamem0
// Copyright (c) 2018-2024 karamem0
//
// This software is released under the MIT License.
//
Expand Down Expand Up @@ -52,7 +52,7 @@ public void AddListColumnChoice()
{ "ChoiceFormat", "RadioButtons" },
// { "ClientSideComponentId", null },
// { "ClientSideComponentProperties", null },
{ "CustomFormatter", "{ \"txtContent\": \"@currentField\" }" },
{ "CustomFormatter", /*lang=json,strict*/ "{ \"txtContent\": \"@currentField\" }" },
{ "DefaultValue", "Test Value 1" },
{ "Description", "Test Column 0 Description" },
{ "Direction", "none" },
Expand Down Expand Up @@ -116,7 +116,7 @@ public void AddSiteColumnChoice()
{ "ChoiceFormat", "RadioButtons" },
// { "ClientSideComponentId", null },
// { "ClientSideComponentProperties", null },
{ "CustomFormatter", "{ \"txtContent\": \"@currentField\" }" },
{ "CustomFormatter", /*lang=json,strict*/ "{ \"txtContent\": \"@currentField\" }" },
{ "DefaultValue", "Test Value 1" },
{ "Description", "Test Column 0 Description" },
{ "Direction", "none" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2023 karamem0
// Copyright (c) 2018-2024 karamem0
//
// This software is released under the MIT License.
//
Expand Down
Loading

0 comments on commit 500834f

Please sign in to comment.