vdev/commands/release/channel.rs
1use anyhow::Result;
2
3use crate::util::get_channel;
4
5/// Provide the release channel (release/nightly/custom).
6/// This command is intended for use only within GitHub build workflows.
7// This script is used across various release scripts to determine where distribute archives,
8// packages, etc.
9#[derive(clap::Args, Debug)]
10#[command()]
11pub struct Cli {}
12
13impl Cli {
14 pub fn exec(self) -> Result<()> {
15 let channel = get_channel();
16
17 println!("{channel}");
18 Ok(())
19 }
20}