-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from luizen/develop
Merging develop to main. Adding several features and fixes.
- Loading branch information
Showing
40 changed files
with
731 additions
and
560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
.DS_Store | ||
/obj/ | ||
/bin/ | ||
*.dll | ||
*.pdb | ||
*.cache | ||
/LiteDb/ | ||
.DS_Store | ||
output/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using CommandLine; | ||
|
||
namespace AlsTools.CliOptions | ||
{ | ||
[Verb("count", HelpText = "Returns the total of projects stored in the als-tools database.")] | ||
class CountOptions | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
using System.Collections.Generic; | ||
using CommandLine; | ||
|
||
namespace AlsTools.CliOptions | ||
{ | ||
[Verb("initdb", | ||
HelpText = @"Initialize the als-tools database with information extracted from Live sets, either from files or folders.")] | ||
public class InitDbOptions | ||
{ | ||
[Option("folders", Required = true, SetName = "folders", Min = 1, HelpText = "The root folders to look for Live Sets, recursively including children folders. This option is mutually exclusive with the --files option.")] | ||
public IEnumerable<string> Folders { get; set; } | ||
|
||
[Option("include-backups", SetName = "folders", Default = false, HelpText = "Set it to true to include backup Live Sets.")] | ||
public bool IncludeBackups { get; set; } | ||
|
||
|
||
[Option("files", Required = true, SetName = "files", Min = 1, HelpText = "The files to extract Live Set information from. This option is mutually exclusive with the --folders option.")] | ||
public IEnumerable<string> Files { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using CommandLine; | ||
|
||
namespace AlsTools.CliOptions | ||
{ | ||
[Verb("list", HelpText = "List all projects stored in the als-tools database.")] | ||
public class ListOptions | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using CommandLine; | ||
|
||
namespace AlsTools.CliOptions | ||
{ | ||
[Verb("locate", HelpText = "Locates projects containing given plugins by their names.")] | ||
class LocateOptions | ||
{ | ||
[Option("plugin-names", Required = true, Min = 1, HelpText = "The plugin names to locate projects by.")] | ||
public IEnumerable<string> PluginsToLocate { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace AlsTools.Config | ||
{ | ||
public class DbOptions | ||
{ | ||
public string DataLocation { get; set; } | ||
|
||
public string ServerUrl { get; set; } | ||
|
||
public string DocumentStoreName { get; set; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
using Raven.Client.Documents; | ||
|
||
namespace AlsTools.Core.Interfaces | ||
{ | ||
public interface IEmbeddedDatabaseContext | ||
{ | ||
IDocumentStore DocumentStore { get; } | ||
|
||
void Initialize(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using AlsTools.Core.Entities; | ||
|
||
namespace AlsTools.Core.Interfaces | ||
{ | ||
public interface ILiveProjectAsyncRepository | ||
{ | ||
Task InsertAsync(LiveProject project); | ||
|
||
Task InsertAsync(IEnumerable<LiveProject> projects); | ||
|
||
Task<IEnumerable<LiveProject>> GetProjectsContainingPluginsAsync(IEnumerable<string> pluginsToLocate); | ||
|
||
Task<IEnumerable<LiveProject>> GetAllProjectsAsync(); | ||
|
||
Task DeleteAllAsync(); | ||
|
||
Task<int> CountProjectsAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using AlsTools.Core.Entities; | ||
|
||
namespace AlsTools.Core.Interfaces | ||
{ | ||
public interface ILiveProjectAsyncService | ||
{ | ||
Task<int> InitializeDbFromFilesAsync(IEnumerable<string> filePaths); | ||
|
||
Task<int> InitializeDbFromFoldersAsync(IEnumerable<string> folderPaths, bool includeBackupFolder); | ||
|
||
Task<IEnumerable<LiveProject>> GetAllProjectsAsync(); | ||
|
||
Task<IEnumerable<LiveProject>> GetProjectsContainingPluginsAsync(IEnumerable<string> pluginsToLocate); | ||
|
||
Task<int> CountProjectsAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.