Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7168

How to new angular project without autocompletion prompt

$
0
0

I'm running the following command in a non-interactive bash script:

https://angular.io/cli/new

# ng new example-project --style=css --ssr=false --skip-git --skip-install

Here is the output:

? Would you like to enable autocompletion? This will set up your terminal so pressing TAB while typing Angular CLI commands will show possible options and autocomplete arguments. (Enabling autocompletion will modify configuration files in your home directory.) (Y/n) 

It will prompt to enable autocompletion and wait for the input "Y". So my bash script hangs at this point.

I have tried to run ng completion but no option to disable it:

https://angular.io/cli/completion

# ng completion --helpng completionSet up Angular CLI autocompletion for your terminal.Commands:  ng completion script  Generate a bash and zsh real-time type-ahead autocompletion script.Options:  --help  Shows a help message for this command in the console.                        

What option can be used to bypass the "Would you like to enable autocompletion" with "Y" when trying to run "ng new example-project ..."


Viewing all articles
Browse latest Browse all 7168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>