flowcrafter 0.3.0

Create and manage workflows for GitHub Actions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Context;
use anyhow::Error;
use clap::Parser;

use flowcrafter::cli::{Cli, Commands};
use flowcrafter::Project;

#[tokio::main]
async fn main() -> Result<(), Error> {
    let cli = Cli::parse();

    let cwd = std::env::current_dir().context("failed to detect current directory")?;
    let project = Project::find(cwd)?;

    Commands::execute(&cli.command, &project).await
}