Modernize the doc subcommand

This commit is contained in:
Lucien Greathouse
2021-05-21 12:44:58 -04:00
parent d153f62b8a
commit afe26b8c16
3 changed files with 14 additions and 8 deletions

View File

@@ -1,4 +1,12 @@
pub fn doc() -> Result<(), anyhow::Error> {
opener::open("https://rojo.space/docs")?;
Ok(())
use structopt::StructOpt;
/// Open Rojo's documentation in your browser.
#[derive(Debug, StructOpt)]
pub struct DocCommand {}
impl DocCommand {
pub fn run(self) -> anyhow::Result<()> {
opener::open("https://rojo.space/docs")?;
Ok(())
}
}