command-line
command-line copied to clipboard
Feature request: Support Response file and Directive.
Thanks for this great tool.
When trying to use some built-in features in System.CommandLine like response files
example
app @file.rsp
i get error:
Unrecognized command or argument '@file.rsp'.
or
app project list --account @account.txt
the option account should be read from file account.txt, but it use the value as is without resolving fileName
Or trying to use directive like:
app [parse] project list --verbose
I get error:
Unrecognized command or argument '[parse]'.
It is nice of these feature can be supported by dotmake-build
I find by using CliSetting and set :
CliSettings settings= new CliSettings
{
EnableDiagramDirective = true, //false by default
};
So, the new directive [diagram] can be used instead of [parse]
For response file, I find that the setting of ResponseFileTokenReplacer is null (it is not configured). In system.CommandLine it is configured to use internal method as given below:
ResponseFileTokenReplacer = StringExtensions.TryReadResponseFile;
FYI, this is fixed with v1.8.8.
Thanks for the new version.