Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Support Response file and Directive. #17

Open
moh-hassan opened this issue Apr 15, 2024 · 1 comment
Open

Feature request: Support Response file and Directive. #17

moh-hassan opened this issue Apr 15, 2024 · 1 comment

Comments

@moh-hassan
Copy link

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
Copy link
Author

moh-hassan commented Apr 23, 2024

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant