v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

View File

@ -209,6 +209,38 @@ Define one or more fields of any type. Note that `type` and
`multiple` must be set explicitly on each definition when using
this method.
## Informative Getters
Once you've defined several fields with the various methods
described above, you can get at the definitions and such with
these methods.
This are primarily just informative, but can be useful in some
advanced scenarios, such as providing "Did you mean?" type
suggestions when someone misspells an option name.
### `Jack.definitions`
The set of config field definitions in no particular order. This
is a data object suitable to passing to `util.parseArgs`, but
with the addition of `short` and `description` fields, where
appropriate.
### `Jack.jackOptions`
The options passed into the initial `jack()` function (or `new
Jack()` constructor).
### `Jack.shorts`
The `{ <short>: <long> }` name record for all short options
defined.
### `Jack.usageFields`
The array of fields that are used to generate `Jack.usage()` and
`Jack.usageMarkdown()` content.
## Actions
Use these methods on a Jack object that's already had its config