pnp/cli-microsoft365

Add ability to ensure a specified connection.

Open

#6,414 opened on 2024年10月7日

GitHub で見る
 (2 comments) (4 reactions) (0 assignees)TypeScript (399 forks)auto 404
enhancementhelp wantedkeep-open

Repository metrics

Stars
 (1,390 stars)
PR merge metrics
 (PR metrics pending)

説明

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,

コントリビューターガイド