command-line icon indicating copy to clipboard operation
command-line copied to clipboard

Feature request: Support Response file and Directive.

Open moh-hassan opened this issue 1 year ago • 1 comments

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

moh-hassan avatar Apr 15 '24 06:04 moh-hassan

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;

moh-hassan avatar Apr 23 '24 22:04 moh-hassan

FYI, this is fixed with v1.8.8.

calacayir avatar Jul 19 '24 12:07 calacayir

Thanks for the new version.

moh-hassan avatar Jul 20 '24 15:07 moh-hassan