Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

JSON schemas to describe command syntax and enable example parsing easily.

License

Notifications You must be signed in to change notification settings

tldr-pages/tldr-json-schemas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tldr-json-schemas

JSON schemas to describe command syntax and enable example parsing easily. Man pages are unrealiable parsing source as they are for humans and not always it's possible to standardize their format quickly.

Problems solved by this project

  • Create a standardized and reliable way to explain command's CLI in a language independent manner
  • Resolve issue with interpreting joined short options: it's not clear without reading man page what -ab is:
    • two joined short options, or
    • one option with a sticked value
  • Enable complex executable invokations linting such as find

How it works?

All JSON schemas map to the TlDr pages in the same locations. For instance common/rm.yaml maps to common/rm.md and specifies how to interpret it's options which allows TlDr clients validate CLI in CI.

About

JSON schemas to describe command syntax and enable example parsing easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published