Skip to content

Commit ad87220

Browse files
authored
Merge pull request #8 from dxworks/6-parameterized-scripts
6 parameterized scripts
2 parents 3bdc344 + d9da20d commit ad87220

File tree

415 files changed

+34423
-14135
lines changed

Some content is hidden

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

415 files changed

+34423
-14135
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- name: Setup .NET
1515
uses: actions/setup-dotnet@v1
1616
with:

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- name: Build Docker Image
1919
run: |
2020
docker build -t dxworks/scriptbee:${{ github.event.inputs.version }} -f ./Dockerfile .

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ riderModule.iml
66
/_ReSharper.Caches/
77
*.user
88
.env
9-
.idea/.idea.ScriptBee/.idea/sonarlint
9+
**/.idea/sonarlint
1010
database/
1111
database2/
1212
scriptbee_data/

.idea/.idea.ScriptBee/.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.ScriptBee/.idea/jsLinters/eslint.xml

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

DxWorks.ScriptBee.Plugin.Api/DxWorks.ScriptBee.Plugin.Api.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<Nullable>enable</Nullable>
6+
<ImplicitUsings>true</ImplicitUsings>
67
<PackageId>DxWorks.ScriptBee.Plugin.Api</PackageId>
78
<Description>This is the API for the ScriptBee plugin.</Description>
89
<PackageReleaseNotes>ReleaseNotes.md</PackageReleaseNotes>

DxWorks.ScriptBee.Plugin.Api/IHelperFunctions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System.Threading;
2-
using System.Threading.Tasks;
3-
4-
namespace DxWorks.ScriptBee.Plugin.Api;
1+
namespace DxWorks.ScriptBee.Plugin.Api;
52

63
public interface IHelperFunctions : IPlugin
74
{

DxWorks.ScriptBee.Plugin.Api/IModelLinker.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Threading;
4-
using System.Threading.Tasks;
5-
6-
namespace DxWorks.ScriptBee.Plugin.Api;
1+
namespace DxWorks.ScriptBee.Plugin.Api;
72

83
public interface IModelLinker : IPlugin
94
{
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
using System.Collections.Generic;
2-
using System.IO;
3-
using System.Threading;
4-
using System.Threading.Tasks;
1+
using DxWorks.ScriptBee.Plugin.Api.Model;
52

63
namespace DxWorks.ScriptBee.Plugin.Api;
74

85
public interface IModelLoader : IPlugin
96
{
7+
[Obsolete("Use LoadModel(IEnumerable<NamedFileStream> fileStreams, Dictionary<string, object>? configuration = default, CancellationToken cancellationToken = default) instead")]
108
public Task<Dictionary<string, Dictionary<string, ScriptBeeModel>>> LoadModel(List<Stream> fileStreams,
119
Dictionary<string, object>? configuration = default, CancellationToken cancellationToken = default);
1210

11+
public Task<Dictionary<string, Dictionary<string, ScriptBeeModel>>> LoadModel(
12+
IEnumerable<NamedFileStream> fileStreams, Dictionary<string, object>? configuration = default,
13+
CancellationToken cancellationToken = default)
14+
{
15+
return LoadModel(fileStreams.Select(x => x.Stream).ToList(), configuration, cancellationToken);
16+
}
17+
1318
public string GetName();
1419
}

DxWorks.ScriptBee.Plugin.Api/IScriptGeneratorStrategy.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Threading.Tasks;
4-
5-
namespace DxWorks.ScriptBee.Plugin.Api;
1+
namespace DxWorks.ScriptBee.Plugin.Api;
62

73
public interface IScriptGeneratorStrategy : IPlugin
84
{

0 commit comments

Comments
 (0)