glendix/cmd

Values

pub fn detect_install_command() -> String

install 명령어를 감지한다. gleam.toml의 pm 오버라이드 → lock 파일 순.

pub fn detect_runner() -> String

패키지 매니저 runner를 감지한다. gleam.toml의 pm 오버라이드 → lock 파일 순.

pub fn exec(command: String) -> Nil

셸 명령어를 실행한다. stdio는 inherit되어 실시간 출력된다.

pub fn generate_bindings() -> Nil

gleam.toml [tools.glendix.bindings]에서 바인딩 코드를 생성한다. glendix 빌드 경로에 binding_ffi.mjs를 생성하여 사용자가 .mjs 파일을 작성하지 않아도 외부 React 컴포넌트를 사용할 수 있게 한다.

pub fn run_tool(args: String) -> Nil

pluggable-widgets-tools를 감지된 runner로 실행한다.

pub fn run_tool_dev() -> Nil

.gleam 파일 변경 감지와 함께 개발 서버를 실행한다. Rollup –watch 대신 build:web를 반복 실행한다 (Windows chokidar 오버헤드 회피).

pub fn run_tool_with_bridge(args: String) -> Nil

브릿지 JS 자동 생성 후 pluggable-widgets-tools를 실행하고, 완료 후 브릿지를 삭제한다.

Search Document