Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomn86 committed Dec 8, 2023
1 parent bd30ef9 commit a9a95c2
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 15 deletions.
Empty file added README.md
Empty file.
2 changes: 1 addition & 1 deletion TLEGenerator.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using TLEGenerator.Program;
global using TLEGenerator;
2 changes: 1 addition & 1 deletion TLEGenerator.Tests/TLEGenerator.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="../TLEGenerator.Program/TLEGenerator.Program.csproj" />
<ProjectReference Include="../TLEGenerator/TLEGenerator.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion TLEGenerator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TLEGenerator.Tests", "TLEGenerator.Tests\TLEGenerator.Tests.csproj", "{402CF7F0-966A-440F-A57B-3E72964A1993}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TLEGenerator.Program", "TLEGenerator.Program\TLEGenerator.Program.csproj", "{4917CDF5-8B14-495B-A65F-6897B3B7645D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TLEGenerator", "TLEGenerator\TLEGenerator.csproj", "{4917CDF5-8B14-495B-A65F-6897B3B7645D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TLEGenerator.Program;
namespace TLEGenerator;

public class CommandLineOptions
{
Expand Down
2 changes: 1 addition & 1 deletion TLEGenerator.Program/Config.cs → TLEGenerator/Config.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json;

namespace TLEGenerator.Program;
namespace TLEGenerator;

public class Config
{
Expand Down
9 changes: 5 additions & 4 deletions TLEGenerator.Program/Program.cs → TLEGenerator/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TLEGenerator.Program;
namespace TLEGenerator;

class Program
{
Expand All @@ -8,12 +8,12 @@ static void Main(string[] args)
commandLineOptions.ParseArgs(args);

Config config = new();
config.ReadConfigFile();
config.ReadConfigFile();

List<string> satellites = commandLineOptions.Input == null ?
SatellitesReader.ReadList(config.SatellitesListPath) :
[.. commandLineOptions.Input.Split(',')];

TLEDataManager tleDataManager = new(config);
tleDataManager.RetrieveGroupsData();

Expand All @@ -25,7 +25,8 @@ static void Main(string[] args)
{
var tle = tleDataManager.GetTLE(satellite);

if (tle != null) {
if (tle != null)
{
Console.WriteLine($"✓ Saved TLE for {tle.Title.Trim()} ({satellite})");
satellitesFound += 1;
outputFile.WriteLine(tle.ToString());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json;

namespace TLEGenerator.Program;
namespace TLEGenerator;

public static class SatellitesReader
{
Expand Down
2 changes: 1 addition & 1 deletion TLEGenerator.Program/TLE.cs → TLEGenerator/TLE.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TLEGenerator.Program;
namespace TLEGenerator;

public sealed class TLE
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TLEGenerator.Program;
namespace TLEGenerator;

public class TLEDataDownloader
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TLEGenerator.Program;
namespace TLEGenerator;

public class TLEDataManager
{
Expand Down Expand Up @@ -53,7 +53,8 @@ public void RetrieveGroupsData()
}
}

private bool IsOldFile(string path){
private bool IsOldFile(string path)
{

DateTime lastModified = File.GetLastWriteTime(path);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Data;

namespace TLEGenerator.Program;
namespace TLEGenerator;

public class TLEFileParser
{
Expand Down
File renamed without changes.

0 comments on commit a9a95c2

Please sign in to comment.