3use clap::{Parser, ValueEnum};
4use crux_core::type_generation::facet::{Config, TypeRegistry};
5use shared::OpencodeApp;
7#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
13#[command(version, about, long_about = None)]
15 #[arg(short, long, value_enum)]
21fn main() -> anyhow::Result<()> {
22 let args = Args::parse();
24 let typegen_app = TypeRegistry::new()
25 .register_app::<OpencodeApp>()?
28 let name = match args.language {
29 Language::Kotlin => "soy.iko.opencode.core",
31 let config = Config::builder(name, &args.output_dir).build();
35 typegen_app.kotlin(&config)?;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list