json-schema(1)

πŸ“¦ version 2.2.1, in arch rolling, nixpkgs unstable

json-schema(1) πŸ’…

okay bestie, welcome to the General Commands Manual entry for json-schema β€” she generates JSON Schema of the given command(s) JSON output, and she ate. ✨

NAME πŸ’–

json-schema β€” Generate JSON Schema of the given command(s) JSON output.

SYNOPSIS πŸŽ€

json-schema [-d|--dir] [-h|--help] [CMDS]

DESCRIPTION πŸ¦‹

okay so this command lets you generate the JSON Schema describing the --json output of a given command. The schema is printed to the standard output, so you can write it to a file using unix redirection β€” iconic, no cap. πŸ’…

Giving a directory instead writes one schema per command in it, and it creates the directory if it does not exist. slay. 🌸

OPTIONS ✨

  • -d, --dir <PATH> β€” Save JSON Schemas to the given directory.
  • -h, --help β€” Print help (see a summary with -h).
  • [CMDS] β€” Command(s) for which JSON Schema should be generated for.
    • A command is named after its full path, dash-separated, as in himalaya-envelope-list.
    • Defaults to every command, which requires a directory.
lowkey important, bestie: if you don’t pass [CMDS], it defaults to every command, and that requires a directory. 🫢

okay that’s the whole page!! footer vibes: json-schema and json-schema(1) from the General Commands Manual β€” source/version noted, and no date was printed so I’m not inventing one. bye bestie πŸ’–πŸŽ€

πŸ“¦ where this page comes from