railwayapp 0.0.3

Interact with Railway via CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// Open your project dashboard
#[derive(Parser)]
pub struct Args {}

pub async fn command(_args: Args, _json: bool) -> Result<()> {
    let configs = Configs::new()?;
    let linked_project = configs.get_linked_project()?;
    ::open::that(format!(
        "https://railway.app/project/{}",
        linked_project.project
    ))?;
    Ok(())
}