Skip to content

Commit

Permalink
chore: move AppData to cli core objects
Browse files Browse the repository at this point in the history
  • Loading branch information
x4vicc committed Oct 30, 2024
1 parent 81fd96a commit 4a6888e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 1 addition & 13 deletions cmf-cli/Handlers/PackageType/RootPackageTypeHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Cmf.CLI.Core;
using Cmf.CLI.Core.Enums;
using Cmf.CLI.Core.Objects;
using Cmf.CLI.Core.Objects.CmfApp;
using Cmf.CLI.Core.Utilities;
using Cmf.CLI.Utilities;
using Newtonsoft.Json;
Expand Down Expand Up @@ -124,19 +125,6 @@ internal virtual void GenerateAppFiles(IDirectoryInfo packageOutputDir, IDirecto
fileSystem.File.Delete(manifestPath);
}

/// <summary>
/// CMF App data
/// </summary>
private record AppData
{
public string id { get; set; }
public string name { get; set; }
public string author { get; set; }
public string description { get; set; }
public string licensedApplication { get; set; }
public string icon { get; set; }
}

/// <summary>
/// Set attributes for element
/// </summary>
Expand Down
13 changes: 13 additions & 0 deletions core/Objects/CmfApp.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Cmf.CLI.Core.Objects.CmfApp;
/// <summary>
/// CMF App data
/// </summary>
public record AppData
{
public string id { get; set; }
public string name { get; set; }
public string author { get; set; }
public string description { get; set; }
public string licensedApplication { get; set; }
public string icon { get; set; }
}

0 comments on commit 4a6888e

Please sign in to comment.