Skip to content

pantoken-root / packages/cli/src / run

Feidhm: run() ​

run(argv): Promise<void>

Béite

Rith an CLI.

Paraiméadair ​

argv ​

readonly string[]

Tuairisceáin ​

Promise<void>

Samplaí ​

Cuir comhpháirt ón chlárlann pantoken leis

ts
import { run } from "@pantoken/cli";

await run(["add", "button"]);

Cruthaigh tionscadal tosaigh React

ts
import { run } from "@pantoken/cli";

await run(["create", "react", "--dir", "./my-app", "--no-install"]);

Gine toscaín Swift isteach i stór tomhaltóra

ts
import { run } from "@pantoken/cli";

// Writes Sources/PanTokens/Tokens.swift + Package.swift under ./ios/DesignTokens.
await run(["generate", "swift", "--out", "./ios/DesignTokens"]);

Gine paléad samplach téama i bhformáid shonrach

ts
import { run } from "@pantoken/cli";

await run(["generate", "swatches", "--format", "gpl", "--theme", "canvas", "--out", "./out"]);