feat: move generate logic to its own crate

This commit is contained in:
Amaan Qureshi 2024-09-27 16:28:50 -04:00
parent 90efa34608
commit 31f24395b4
47 changed files with 103 additions and 57 deletions

View file

@ -11,8 +11,7 @@ use heck::{ToKebabCase, ToShoutySnakeCase, ToSnakeCase, ToUpperCamelCase};
use indoc::indoc;
use serde::Deserialize;
use serde_json::{json, Map, Value};
use crate::generate::write_file;
use tree_sitter_generate::write_file;
const CLI_VERSION: &str = env!("CARGO_PKG_VERSION");
const CLI_VERSION_PLACEHOLDER: &str = "CLI_VERSION";