mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
refactor(cli): rename tooling/cli.rs folder to tooling/cli (#3388)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
committed by
GitHub
parent
62c7a8ad30
commit
4334865266
10
tooling/cli/node/src/lib.rs
Normal file
10
tooling/cli/node/src/lib.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
use napi::{Error, Result, Status};
|
||||
|
||||
#[napi_derive::napi]
|
||||
pub fn run(args: Vec<String>, bin_name: Option<String>) -> Result<()> {
|
||||
tauri_cli::run(args, bin_name).map_err(|e| Error::new(Status::GenericFailure, e.to_string()))
|
||||
}
|
||||
Reference in New Issue
Block a user