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: it freezes with the first public release that ships packs.

Your own packs can be written and checked today, and not yet loaded into the palette. Honest limits says more.

Options

-h, --help

Show this help and exit with 0

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.1.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