Skip to content

Commit 44c1101

Browse files
authored
use CLI (#1214)
1 parent a02592d commit 44c1101

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pgml-sdks/pgml/src/cli.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ pub fn cli(
160160
Ok(promise)
161161
}
162162

163+
#[cfg(all(not(feature = "python"), not(feature = "javascript")))]
164+
pub async fn cli() -> anyhow::Result<()> {
165+
cli_internal().await
166+
}
167+
163168
async fn cli_internal() -> anyhow::Result<()> {
164169
#[cfg(feature = "python")]
165170
let subcommand = {

pgml-sdks/pgml/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ mod utils;
3434

3535
// Re-export
3636
pub use builtins::Builtins;
37+
pub use cli::cli;
3738
pub use collection::Collection;
3839
pub use model::Model;
3940
pub use open_source_ai::OpenSourceAI;

0 commit comments

Comments
 (0)