This is a Mise plugin for MyProject, a project task runner built with MyCmd.
This is based off of the Mise Plugin Template.
- Install pre-commit hooks (optional but recommended):
hk installThis sets up automatic linting and formatting on git commits.
- Link your plugin for development:
mise plugin link --force <TOOL> .- Run tests:
mise run test- Run linting:
mise run lint- Run full CI suite:
mise run ciThis template uses hk for modern linting and pre-commit hooks:
- Automatic formatting:
styluaformats Lua code - Static analysis:
luacheckcatches Lua issues - GitHub Actions linting:
actionlintvalidates workflows - Pre-commit hooks: Runs all checks automatically on git commit
Manual commands:
hk check # Run all linters (same as mise run lint)
hk fix # Run linters and auto-fix issuesEnable debug output:
MISE_DEBUG=1 mise install <TOOL>@latestmetadata.lua– Plugin metadata and configurationhooks/available.lua– Returns available versions from upstreamhooks/pre_install.lua– Returns artifact URL for a given versionhooks/post_install.lua– Post-installation setup (permissions, moving files)hooks/env_keys.lua– Environment variables to export (PATH, etc.).github/workflows/ci.yml– GitHub Actions CI/CD pipelinemise.toml– Development tools and configurationmise-tasks/– Task scripts for testinghk.pkl– Modern linting and pre-commit hook configuration.luacheckrc– Lua linting configurationstylua.toml– Lua formatting configuration
Refer to the mise docs for detailed information:
- Tool plugin development - Complete guide to plugin development
- Lua modules reference - Available Lua modules and functions
- Plugin publishing - How to publish your plugin
- mise-plugins organization - Community plugins repository
- Ensure all tests pass:
mise run ci - Create a GitHub repository for your plugin
- Push your code
- (Optional) Request to transfer to mise-plugins organization
- Add to the mise registry via PR
MIT