cli: Remove rad-web from help

Due to it not being stable, and eventually the auth flow to be
rewritten, it should be removed.
This commit is contained in:
Sebastian Martinez 2024-03-04 10:43:31 +01:00 committed by cloudhead
parent b917c1b411
commit 9950182ee0
No known key found for this signature in database
1 changed files with 0 additions and 12 deletions

View File

@ -1,6 +1,4 @@
use std::ffi::OsString;
use std::process::Command;
use std::str;
use crate::terminal as term;
use crate::terminal::args::{Args, Error, Help};
@ -85,16 +83,6 @@ pub fn run(_options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
term::format::dim(help.description)
);
}
// Obtain the rad-web help.
if let Ok(output) = Command::new("rad-web").arg("--help").output() {
if let Some(description) = str::from_utf8(&output.stdout)?.lines().nth(1) {
term::info!(
"\t{} {}",
term::format::bold(format!("{:-12}", "web")),
term::format::dim(description)
);
}
}
term::blank();
term::print("See `rad <command> --help` to learn about a specific command.");
term::blank();