mirror of
https://github.com/EpicMorg/atlassian-downloader.git
synced 2025-05-07 20:19:26 +03:00
1.0.0.7
* sourcetree support
This commit is contained in:
parent
83980e6c77
commit
e68f68d792
@ -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)
|
||||||
|
@ -15,9 +15,9 @@ 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()
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user