nkb new-pack
Write the skeleton of a new pack, ready to edit and already passing nkb lint.
nkb new-pack <name>
What does it write?
One file in the current folder, named after the pack, with one example value to replace and a short note on the three things worth knowing first: the sentence about what a value breaks is the point, a character nobody can see is written escaped, and nkb lint checks the result. It never writes over a file that is already there.
The name becomes both the file name and the pack’s identifier, so it is lower case letters, digits and hyphens, starting with a letter.
$ nkb new-pack my-pack
Wrote my-pack.toml.
Edit it, then run `nkb lint my-pack.toml` - it reports everything in one pass.
The pack format is not frozen yet: a later release may still change it.
Put the file in your own folder, packs beside the settings file, and the palette and nkb offer it beside the built-in packs. Write your own pack explains every field of the file, and the pack templates are fuller examples to start from.
Options
Exit codes
This command's help names no exit codes of its own. The numbers mean the same for every command: Exit codes
The help, as the program prints it
What nkb new-pack --help prints, from nkb 0.4.0.
nkb new-pack - write the skeleton for a new pack Usage: nkb new-pack <name> The name becomes both the file name and the pack identifier, so it has to be lower case letters, digits and hyphens, starting with a letter. The file is written in the current folder and never over an existing one. Options: -h, --help Show this help and exit with 0