cargo_atelier 0.2.0

Cargo integration for the AWS Smithy IDL.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use cargo_atelier::{actions, command_line, report, Command};
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    match command_line::parse()? {
        Command::Lint(cmd, options) => {
            report::report_action_issues(actions::lint_file(cmd)?, options.use_color)?
        }
        Command::Validate(cmd, options) => {
            report::report_action_issues(actions::validate_file(cmd)?, options.use_color)?
        }
        Command::Convert(cmd, _) => actions::convert_file_format(cmd)?,
    };
    Ok(())
}