-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented optional --backup, --force, and --dry-run command line op…
…tions
- Loading branch information
Showing
14 changed files
with
280 additions
and
95 deletions.
There are no files selected for viewing
18 changes: 13 additions & 5 deletions
18
...teExtension/Services/FileSystemService.cs → ...eferenceVersionToAttribute/FileService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/PackageReferenceVersionToAttribute/ProjectConverterOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// <copyright file="ProjectConverterOptions.cs" company="Rami Abughazaleh"> | ||
// Copyright (c) Rami Abughazaleh. All rights reserved. | ||
// </copyright> | ||
|
||
namespace PackageReferenceVersionToAttribute | ||
{ | ||
/// <summary> | ||
/// Represents the options for configuring the project converter behavior. | ||
/// </summary> | ||
public class ProjectConverterOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets a value indicating whether to back up project files before conversion. | ||
/// </summary> | ||
public bool Backup { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to force conversion of project files, | ||
/// even if they are marked as read-only. | ||
/// </summary> | ||
public bool Force { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to perform a dry run, | ||
/// simulating the conversion without making any changes. | ||
/// </summary> | ||
public bool DryRun { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
src/PackageReferenceVersionToAttributeTool/NullFileService.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.