@tasteee/nyxx
v1.0.0
Published
script maps
Downloads
82
Readme
nyxx
A tiny CLI that maps short, memorable commands to the long ones you always forget. Define your scripts once in nyxx.yml — nyxx handles the rest.
Install
npm install -g nyxx
# or
pnpm add -g nyxxUsage
Run nyxx with no arguments to see all available scripts at a glance.
nyxxRun any command you've defined:
nyxx dev web
nyxx build ui --watch
nyxx release api betaConfiguration
Create a nyxx.yml at the root of your project. Each command has an input (what you type) and an output (what actually runs). Use {{double braces}} for template variables, and defaults for optional arguments.
commands:
dev:
input: 'dev <app>'
output: 'pnpm --filter @my-org/{{app}} dev'
build:
input: 'build <pkg> [...args]'
output: 'pnpm --filter @my-org/{{pkg}} build {{args}}'
release:
input: 'release <pkg> [tag]'
output: 'pnpm --filter @my-org/{{pkg}} publish --tag {{tag}} --access public'
defaults:
tag: latestArgument syntax
| Syntax | Meaning |
| ----------- | ------------------------------------------ |
| <name> | Required argument |
| [name] | Optional argument |
| [...name] | Optional, captures all remaining arguments |
Defaults kick in for optional arguments when nothing is passed.
