Skip to content

Default --interactive to true across the commands #35165

Closed
@baronfel

Description

@baronfel

Describe the bug

Many commands that interact with NuGet have an --interactive flag that is used to signal that the user can be prompted for additional credentials. We should default this to 'true' instead of false so that user-driven sessions Just Work ™️.

We have several different --interactive flags that we should change at the same time, and we should have detection of common ways to signal that the session is not interactive:

  • if stdin/stdout/stderr are redirected
  • if we are not running in an interactive shell (in Unix this is commonly if the prompt environment variable PS1 is set)
  • ???

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions