pnp/cli-microsoft365

Add ability to ensure a specified connection.

Open

#6414 aperta il 7 ott 2024

Vedi su GitHub
 (2 commenti) (4 reazioni) (0 assegnatari)TypeScript (399 fork)auto 404
enhancementhelp wantedkeep-open

Metriche repository

Star
 (1390 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Currently, when using login --ensure, the CLI ensures the active connection. However, if we use the --connectionName option, it would be better if it would ensure the specified connection. It currently does not do that.

image

Let's fix this.

Running the following command:

m365 login --ensure --connectionName "some-name"

...should ensure that the specified connection is not expired and kickstart the login process if it is. If the connectionName is not available, it means it's a new connection anyway, and the login process must start as well,

Guida contributor