#![allow(clippy::or_fun_call)] use std::convert::TryFrom; use std::env; use std::ffi::OsString; use std::path::PathBuf; use anyhow::{anyhow, bail, Context as _}; use serde_json as json; use radicle::crypto::ssh; use radicle::git::RefString; use radicle::node::tracking::Scope; use radicle::node::{Handle, NodeId}; use radicle::profile; use crate::git; use crate::terminal as term; use crate::terminal::args::{Args, Error, Help}; use crate::terminal::Interactive; pub const HELP: Help = Help { name: "init", description: "Initialize a project from a git repository", version: env!("CARGO_PKG_VERSION"), usage: r#" Usage rad init [] [