Skip to content

Commit

Permalink
refactor: add record name to configuration and update Add command
Browse files Browse the repository at this point in the history
  • Loading branch information
alperensert committed Apr 9, 2024
1 parent 9c027a0 commit e912fef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CloudflareDnsync.Cli/Commands/AddCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ await configService.AddAsync(new DnsyncConfiguration
await configService.AddAsync(new DnsyncConfiguration
{
Name = name,
RecordName = record.Name,
Content = record.Content,
Token = token,
ZoneId = zone.Id,
Id = record.Id,
Expand Down
3 changes: 3 additions & 0 deletions src/CloudflareDnsync.Models/DnsyncConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public sealed class DnsyncConfiguration
[JsonProperty("record_id")]
public string Id { get; set; } = null!;

[JsonProperty("record_name")]
public string? RecordName { get; set; }

[JsonProperty("zone_id")]
public string ZoneId { get; set; } = null!;

Expand Down

0 comments on commit e912fef

Please sign in to comment.