pempei
v0.1.0
Published
A small, fast command-line tool
Readme
pempei
A basic, dependency-free CLI published through both npm and crates.io.
Install
Choose one registry; both packages install a pempei executable.
npm install --global pempei
# or
cargo install pempeiUsage
pempei --help
pempei --version
pempei hello worldThe starter implementation prints positional arguments joined by spaces. Replace that behavior as the real CLI takes shape, while keeping the npm and Rust entry points aligned.
Development
cargo test
npm test
cargo run -- hello world
node npm/bin/pempei.js hello worldPublishing with Gitea Actions
- Replace every
https://gitea.com/OWNER/pempeivalue inCargo.tomlandpackage.jsonwith the real public repository URL. crates.io rejects unreachable or placeholder metadata. - Confirm that the names
pempeiare available on npm and crates.io. Registry names are global and this repository cannot reserve them. - Add repository action secrets in Gitea:
NPM_TOKEN: npm automation or granular access token allowed to publishpempei.CARGO_REGISTRY_TOKEN: crates.io API token allowed to publishpempei.
- Update all three version locations together:
Cargo.toml,package.json, andnpm/bin/pempei.js.npm testchecks that they match. - Commit the version change, then push a matching tag:
git tag v0.1.0
git push origin main v0.1.0.gitea/workflows/publish.yml verifies the tag and packages before publishing. npm and crates.io are separate registries, so one publish can still succeed if the other fails; rerunning is safe only for the registry that has not already received that immutable version.
