Magnusalt / tretton37

My attempt to a solution for the C# code assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tretton37

My attempt to a solution for the C# code assignment

Dev Environment

.NET Core SDK:

Version:   3.1.300
Commit:    2475c1295

Runtime Environment:

OS Name:      ubuntu
OS Version:   20.04
OS Platform:  Linux
RID:         linux-x64
Base Path:   /usr/share/dotnet/sdk/3.1.300/

Additional Test Environment

.NET Core SDK:

Version:   3.1.300
Commit:    b2475c1295

Runtime Environment:

 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.300\

Usage

Run

To ease argument parsing this project uses "System.CommandLine.DragonFruit". From SiteSaver.ConsoleRunner directory run the following:

dotnet run -- --help

to list available commands or

dotnet run 

to run with defaults (domain=https://tretton37.com, directory=[workDir/tretton37com])

Test

In directory SiteSaver.Tests

dotnet test

Scope and Limitations

  • No editing of html documents to work offline.
  • No validation that downloaded data actually match what was requested.
  • No resources outside the specified domain is downloaded.
  • If a child directory is specified as input but contains link to parent the parent will still be downloaded.

About

My attempt to a solution for the C# code assignment


Languages

Language:C# 100.0%