TFK7CYFQSI6KLVA2XZG6JR7ZF5QSUODJBDYM3PTDPBUHVSDQLAIQC
PGERZ3KJIQIREXAYLKLZR4526X5RPKIA6LSVZL2DGYQ5UVPIIBUQC
VQPAUKBQ2POZKL7CZFAZK5ZQKEBYL27XZYZWYUSH5AH25KK6DWKAC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
/// Create a new, empty channel. #[clap(name = "switch")] New { name: String },
/// Create a new, empty channel.
#[clap(name = "switch")]
New { name: String },
} Some(SubCommand::New { name }) => { let repo = Repository::find_root(self.repo_path).await?; let mut txn = repo.pristine.mut_txn_begin()?; if txn.load_channel(&name)?.is_some() { bail!("Channel {} already exists", name) } txn.open_or_create_channel(&name)?; txn.commit()?;
}
Some(SubCommand::New { name }) => {
let repo = Repository::find_root(self.repo_path).await?;
let mut txn = repo.pristine.mut_txn_begin()?;
if txn.load_channel(&name)?.is_some() {
bail!("Channel {} already exists", name)
txn.open_or_create_channel(&name)?;
txn.commit()?;