Skip to content

Commit e195a7a

Browse files
committed
refactoring
1 parent 8b6d396 commit e195a7a

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Implementations/KnowledgeDB-Implementation/PainKiller.PowerCommands.KnowledgeDBCommands/DomainObjects/KnowledgeItem.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using PainKiller.PowerCommands.KnowledgeDBCommands.Extensions;
2-
3-
namespace PainKiller.PowerCommands.KnowledgeDBCommands.DomainObjects;
1+
namespace PainKiller.PowerCommands.KnowledgeDBCommands.DomainObjects;
42

53
public class KnowledgeItem
64
{
@@ -10,7 +8,7 @@ public KnowledgeItem(ICommandLineInput input)
108
{
119
ItemID = Guid.NewGuid();
1210
Name = input.GetOptionValue(nameof(Name).ToLower());
13-
SourceType = input.ToSourceType();
11+
SourceType = input.SingleArgument;
1412
Uri = input.SingleQuote;
1513
Tags = input.GetOptionValue(nameof(Tags).ToLower());
1614
}

Implementations/KnowledgeDB-Implementation/PainKiller.PowerCommands.KnowledgeDBCommands/Extensions/FormatExtensions.cs

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

Implementations/KnowledgeDB-Implementation/PainKiller.PowerCommands.KnowledgeDBCommands/PainKiller.PowerCommands.KnowledgeDBCommands.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
</None>
2626
</ItemGroup>
2727

28+
<ItemGroup>
29+
<Folder Include="Extensions\" />
30+
</ItemGroup>
31+
2832

2933

3034
</Project>

0 commit comments

Comments
 (0)