* sourcetree support
This commit is contained in:
stam 2021-01-17 13:45:28 +03:00
parent 83980e6c77
commit e68f68d792
3 changed files with 15 additions and 8 deletions

View File

@ -32,7 +32,7 @@ namespace EpicMorg.Atlassian.Downloader
this.SetConsoleTitle(); this.SetConsoleTitle();
var feedUrls = this.GetFeedUrls(); var feedUrls = this.GetFeedUrls();
logger.LogTrace($"Task started"); logger.LogInformation($"Task started");
foreach (var feedUrl in feedUrls) foreach (var feedUrl in feedUrls)
{ {
if (cancellationToken.IsCancellationRequested) if (cancellationToken.IsCancellationRequested)
@ -116,7 +116,14 @@ namespace EpicMorg.Atlassian.Downloader
"https://my.atlassian.com/download/feeds/eap/confluence.json", "https://my.atlassian.com/download/feeds/eap/confluence.json",
"https://my.atlassian.com/download/feeds/eap/jira.json", "https://my.atlassian.com/download/feeds/eap/jira.json",
"https://my.atlassian.com/download/feeds/eap/jira-servicedesk.json", "https://my.atlassian.com/download/feeds/eap/jira-servicedesk.json",
"https://my.atlassian.com/download/feeds/eap/stash.json" "https://my.atlassian.com/download/feeds/eap/stash.json",
//https://raw.githubusercontent.com/EpicMorg/atlassian-json/master/json-backups/archived/sourcetree.json
"https://raw.githack.com/EpicMorg/atlassian-json/master/json-backups/archived/sourcetree.json",
//https://raw.githubusercontent.com/EpicMorg/atlassian-json/master/json-backups/current/sourcetree.json
"https://raw.githack.com/EpicMorg/atlassian-json/master/json-backups/current/sourcetree.json"
}; };
private void SetConsoleTitle() private void SetConsoleTitle()
@ -168,7 +175,7 @@ namespace EpicMorg.Atlassian.Downloader
} }
} }
} }
logger.LogTrace($"All files from \"{feedUrl}\" successfully downloaded."); logger.LogInformation($"All files from \"{feedUrl}\" successfully downloaded.");
} }
private async Task DownloadFile(ResponseItem file, string outputFile, CancellationToken cancellationToken) private async Task DownloadFile(ResponseItem file, string outputFile, CancellationToken cancellationToken)

View File

@ -14,10 +14,10 @@ namespace EpicMorg.Atlassian.Downloader
{ {
/// <summary> /// <summary>
/// Atlassian archive downloader. See https://github.com/EpicMorg/atlassian-downloader for more info /// Atlassian archive downloader. See https://github.com/EpicMorg/atlassian-downloader for more info
/// </summary> /// </summary>
/// <param name="Action">Action to perform</param>
/// <param name="OutputDir">Override output directory to download.</param> /// <param name="OutputDir">Override output directory to download.</param>
/// <param name="customFeed">Override URIs to import.</param> /// <param name="customFeed">Override URIs to import.</param>
/// <param name="Action">Action to perform</param>
static async Task Main(string OutputDir = "atlassian", Uri[] customFeed = null, DownloadAction Action = DownloadAction.Download) => await static async Task Main(string OutputDir = "atlassian", Uri[] customFeed = null, DownloadAction Action = DownloadAction.Download) => await
Host Host
.CreateDefaultBuilder() .CreateDefaultBuilder()

View File

@ -1,11 +1,11 @@
{ {
"Serilog": { "Serilog": {
"MinimumLevel": "Verbose", "MinimumLevel": "Information",
"WriteTo": [ "WriteTo": [
{ {
"Name": "Console", "Name": "Console",
"Args": { "Args": {
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console" "theme": "Serilog.Sinks.SystemConsole.Themes.SystemConsoleTheme::Literate, Serilog.Sinks.Console"
} }
} }
, ,