mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-16 21:09:22 +08:00
draft:执行shell抽成task,并支持配置 (#1306)
* Shell抽象成为一个Task,并抽出Config * 代码格式化 * 格式化代码
This commit is contained in:
23
BetterGenshinImpact/GameTask/Shell/ShellConfig.cs
Normal file
23
BetterGenshinImpact/GameTask/Shell/ShellConfig.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
|
||||
namespace BetterGenshinImpact.Core.Config;
|
||||
|
||||
/// <summary>
|
||||
/// shell执行配置
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public partial class ShellConfig : ObservableObject
|
||||
{
|
||||
// 禁用Shell任务
|
||||
[ObservableProperty] private bool _disable;
|
||||
|
||||
// 最长等待命令返回的时间,单位秒,<=0不等待,直接返回。
|
||||
[ObservableProperty] private int _timeout = 60;
|
||||
|
||||
// 隐藏命令执行窗口
|
||||
[ObservableProperty] private bool _noWindow = true;
|
||||
|
||||
// 向log打印命令执行输出
|
||||
[ObservableProperty] private bool _output = true;
|
||||
}
|
||||
Reference in New Issue
Block a user