glendix/cmd

Values

pub fn detect_install_command() -> String

lock 파일 기반으로 패키지 매니저 install 명령어를 감지한다.

pub fn detect_runner() -> String

lock 파일 기반으로 패키지 매니저 runner를 감지한다. pnpm-lock.yaml → “pnpm exec”, bun.lockb/bun.lock → “bunx”, 기본 → “npx”

pub fn exec(command: String) -> Nil

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

pub fn run_tool(args: String) -> Nil

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

pub fn run_tool_with_bridge(args: String) -> Nil

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

Search Document