@chen86860/autocomplete-specs
v3.0.7
Published
Completion specs for Easy Complete
Readme
@chen86860/autocomplete-specs
Completion specs used by easy-complete.
This repository is a fork of withfig/autocomplete. It keeps the completion-spec format and tooling from the original project, while publishing the maintained specs for Easy Complete.
Package
The package is published to npm as
@chen86860/autocomplete-specs.
npm install @chen86860/autocomplete-specsWhat are completion specs?
A completion spec is a declarative TypeScript schema that describes the subcommands, options, and arguments for a CLI tool. Easy Complete uses these schemas to generate command-line suggestions.
Specs live in the src/ directory and are compiled into build/ before
publishing.
Development
pnpm install
pnpm build
pnpm test
pnpm lintUseful commands:
pnpm create-spec <name>
pnpm dev
pnpm lint:fixRelease
When specs are released, the GitHub Actions workflow builds the specs archive,
creates a spec-build-number-* GitHub release, publishes the current
@chen86860/autocomplete-specs package to npm, and then bumps the package
version for the next release.
npm publishing uses Trusted Publishing with provenance. Configure the
chen86860/autocomplete-specs repository and this workflow as a trusted
publisher in the npm package settings before running the release.
