mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 21:25:18 +01:00
simplify dataType completion code
This commit is contained in:
parent
84c371dede
commit
71907a2ddc
1 changed files with 7 additions and 11 deletions
18
Program.cs
18
Program.cs
|
|
@ -150,17 +150,13 @@ internal static class Program {
|
||||||
Description = "Data Type",
|
Description = "Data Type",
|
||||||
DefaultValueFactory = _ => "jpeg"
|
DefaultValueFactory = _ => "jpeg"
|
||||||
};
|
};
|
||||||
dataTypeArgument.CompletionSources.Add(_ => {
|
dataTypeArgument.CompletionSources.Add(_ => [
|
||||||
List<CompletionItem> dataTypes = [];
|
new("description"),
|
||||||
dataTypes.AddRange([
|
new("format"),
|
||||||
new("description"),
|
new("jpeg"),
|
||||||
new("format"),
|
new("json"),
|
||||||
new("jpeg"),
|
new("sign"),
|
||||||
new("json"),
|
new("title")]);
|
||||||
new("sign"),
|
|
||||||
new("title")]);
|
|
||||||
return dataTypes;
|
|
||||||
});
|
|
||||||
Option<String> outputOption = new("--output", "-o") {
|
Option<String> outputOption = new("--output", "-o") {
|
||||||
Description = "Output File",
|
Description = "Output File",
|
||||||
DefaultValueFactory = _ => "-"
|
DefaultValueFactory = _ => "-"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue