Skip to content

Commit

Permalink
Merge pull request #50 from NJUPT-SAST/feature/magic&cli
Browse files Browse the repository at this point in the history
Feature/magic&cli
  • Loading branch information
BQXBQX authored Oct 8, 2024
2 parents d01712b + ea59151 commit db9baac
Show file tree
Hide file tree
Showing 12 changed files with 612 additions and 34 deletions.
Binary file added cli/@ui-aurora/cli.darwin-arm64.node
Binary file not shown.
139 changes: 139 additions & 0 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ name = "cli"
version = "0.1.0"
edition = "2021"


[dependencies]
crossterm = "0.28.1"
ratatui = "0.28.1"
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.12.2", default-features = false, features = ["napi4"] }
napi-derive = "2.12.2"


[build-dependencies]
napi-build = "2.0.1"

[profile.release]
lto = true
strip = "symbols"

[lib]
crate-type = ["cdylib"]
5 changes: 5 additions & 0 deletions cli/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extern crate napi_build;

fn main() {
napi_build::setup();
}
6 changes: 6 additions & 0 deletions cli/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* tslint:disable */
/* eslint-disable */

/* auto-generated by NAPI-RS */

export declare function runTui(): NapiResult
Loading

1 comment on commit db9baac

@vercel
Copy link

@vercel vercel bot commented on db9baac Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sast-ui – ./

sast-ui-sast.vercel.app
sast-ui-git-main-sast.vercel.app

Please sign in to comment.