/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Utils/CommandLine/ParsedCommand.cs
35 строк
718 B
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Utils.CommandLine { /// <summary> /// Represents a parsed command node on Windows. /// </summary> public sealed class ParsedCommand { /// <summary> /// Gets or sets parsed command type. /// </summary> public ParsedCommandType Type { get; set; } /// <summary> /// Gets or sets list of arguments. /// </summary> public List<string> Args { get; set; } /// <summary> /// Gets first argument item. /// </summary> public string Payload => Args.FirstOrDefault(string.Empty); /// <summary> /// Initialize a parsed command class. /// </summary> public ParsedCommand() { Args = []; } } }