pnp/cli-microsoft365

Add ability to ensure a specified connection.

Open

#6,414 创建于 2024年10月7日

在 GitHub 查看
 (2 评论) (4 反应) (0 负责人)TypeScript (399 fork)auto 404
enhancementhelp wantedkeep-open

仓库指标

Star
 (1,390 star)
PR 合并指标
 (PR 指标待抓取)

描述

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,

贡献者指南