You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Is it possible to parse command lines more like urls /command//subcommand/?
For following commands:
[Command("group")]
public class GroupCommand : ICommand
{
[CommandParameter(0, Description = "Group ID")]
public string Group { get; set; }
public async ValueTask ExecuteAsync(IConsole console)
{
await console.Output.WriteLineAsync("Group");
}
}
[Command("group add")]
public class GroupAddCommand : ICommand
{
[CommandParameter(0, Description = "group value")]
public string Value { get; set; }
public async ValueTask ExecuteAsync(IConsole console)
{
await console.Output.WriteLineAsync("Group");
}
}
I want to achieve following behaviour: cli.exe group 123 add 321 e.g. parse all arguments and parameters for GroupCommand , and then parse GroupAddCommand. And of course get all the arguments in GroupAddCommand. Is it possible in current version?
The text was updated successfully, but these errors were encountered:
Hi @hellozyemlya,
This is not possible with the current stable release. The new ASP.NET Core-like version of Typin is still in develpoment (I was focused on other projects and didn't have time to finish Typin 4.0 yet). Typin 4.0 will allow to personalize every aspect of it, including the implementation of the behavior you want.
Hi. Is it possible to parse command lines more like urls /command//subcommand/?
For following commands:
I want to achieve following behaviour:
cli.exe group 123 add 321
e.g. parse all arguments and parameters for GroupCommand , and then parse GroupAddCommand. And of course get all the arguments in GroupAddCommand. Is it possible in current version?The text was updated successfully, but these errors were encountered: