feat: windows右键菜单打开Git仓库网址 (#30)

This commit is contained in:
2023-12-15 21:01:36 +08:00
committed by GitHub
parent 5299b2b636
commit 1d67b6d9a8
4 changed files with 80 additions and 61 deletions

View File

@ -28,4 +28,24 @@ internal sealed class Option : OptionBase
[Localization(typeof(Ln))]
[DefaultValue(".")]
public string Path { get; set; }
#if NET8_0_WINDOWS
[CommandOption("-i|--install-right-click-menu")]
[Description(nameof(Ln.添加Windows右键菜单))]
[Localization(typeof(Ln))]
[DefaultValue(false)]
public bool InstallRightClickMenu { get; set; }
[CommandOption("-u|--uninstall-right-click-menu")]
[Description(nameof(Ln.卸载Windows右键菜单))]
[Localization(typeof(Ln))]
[DefaultValue(false)]
public bool UninstallRightClickMenu { get; set; }
[CommandOption("-o|--open-git-url")]
[Description(nameof(Ln.打开Git仓库网址))]
[Localization(typeof(Ln))]
[DefaultValue(false)]
public bool OpenGitUrl { get; set; }
#endif
}