Skip to content

UNT-CAS/Assert-IsNonInteractiveShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Returns boolean determining if prompt was run noninteractive.

Description

First, we check [Environment]::UserInteractive to determine if we're if the shell if running interactively. An example of not running interactively would be if the shell is running as a service.

If we are running interactively, we check the Command Line Arguments to see if the -NonInteractive switch was used; or an abbreviation of the switch.

Works well with REQUIREMENTS.json.

Links

About

Returns boolean determining if prompt was run noninteractive.

Resources

License

Stars

Watchers

Forks

Packages

No packages published