-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.rs
More file actions
33 lines (31 loc) · 938 Bytes
/
configure.rs
File metadata and controls
33 lines (31 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//! The `configure` CLI command (deprecated).
//!
//! Sets `GITHUB_TOKEN` on every matched ADO definition. This command
//! is retained as a hidden deprecation alias forwarding to
//! [`crate::secrets::run_set_github_token`]; new code should use
//! `ado-aw secrets set GITHUB_TOKEN <value>` instead.
use anyhow::Result;
use std::path::Path;
/// Forwarder for the legacy `configure --token` invocation. Emits a
/// deprecation warning to stderr and forwards to the unified
/// `secrets set GITHUB_TOKEN` code path.
pub async fn run(
token: Option<&str>,
org: Option<&str>,
project: Option<&str>,
pat: Option<&str>,
path: Option<&Path>,
dry_run: bool,
definition_ids: Option<&[u64]>,
) -> Result<()> {
crate::secrets::run_set_github_token(
token,
org,
project,
pat,
path,
dry_run,
definition_ids,
)
.await
}