jsightapi / cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 

JSight

JSight CLI

Golang Telegram support PRs Welcome License JSight on Facebook JSight on LinkedIn Twitter Follow

Alchemist Accelerator

 

⭐ Star us on GitHub β€” it motivates us a lot! ⭐

 

JSight CLI is the cli tool which performs various task when working with JSight API language.

The JSight CLI allows you to perform the following tasks:

  1. Parsing code in the JSight API language and checking JSight API syntax.
  2. Generating HTML API documentation in a single *.html file.
  3. Converting JSight to OpenAPI 3.0.

πŸ”₯ If you have any ideas or suggestions, please share with us:

πŸš€   Install

Linux

Download jsight cli tool from the official website and move to the /usr/local/bin folder:

wget https://jsight.io/downloads/jsight-cli/1.1.0/linux-x64/jsight
mv jsight /usr/local/bin
chmod +x /usr/local/bin/jsight

Check the installation:

jsight version

Mac OS

Download jsight cli tool from the official website and move to the /usr/local/bin folder:

wget https://jsight.io/downloads/jsight-cli/1.1.0/macos-x64/jsight && mv jsight /usr/local/bin && chmod +x /usr/local/bin/jsight

Check the installation:

jsight version

Windows

Download jsight.exe cli tool from the official website (Powershell):

curl https://jsight.io/downloads/jsight-cli/1.1.0/windows-x64/jsight.exe -outfile jsight.exe

Check the installation:

jsight.exe version

πŸš€   Usage

  • jsight version β€” outputs the current version of JSight CLI.
  • jsight help β€” outputs the manaul fo JSight CLI.
  • jsight doc html <jsight file> β€” parses the <jsight file> and outputs the corresponding html document (or an error description).
  • jsight convert openapi yaml <jsight file> β€” parses the <jsight file>, converts it to OpenAPI and outputs the OpenAPI definition in the YAML format.
  • jsight convert openapi json <jsight file> β€” parses the <jsight file>, converts it to OpenAPI and outputs the OpenAPI definition in the JSON format.

Creating HTML doc example:

jsight doc html my-api-spec.jst > my-api-spec.html

Converting to OpenAPI example:

jsight convert openapi yaml my-api-spec.jst > my-api-spec.openapi

πŸš€   Manual Building and Testing

  • make β€” builds binary to the ./build folder and runs the tests.
  • make build β€” builds binary to the ./build folder.
  • make test β€” runs the tests against the ./build/jsight binary.

πŸ“‘   Versioning

The JSight CLI adheres to the Semantic Versioning 2.0.0.

{MAJOR version}.{MINOR version}.{PATCH version}

The JSight CLI version is specified in the file main.go in the global variable Version.

πŸ“”   Dependencies

All the dependencies are described in the file go.mod.

 

😎   Contributing

Contributing is more than just coding. You can help the project in many ways, and we will be very happy to accept your contribution to our project.

Details of how you can help the project are described in the CONTRIBUTING.md document.

 

Contributors

 

πŸ’¬   Bugs and Feature Requests

Do you have a bug report or a feature request?

Please feel free to add a new issue or write to us in support:

 

❔   Support

If something is unclear to you, please contact support; we try to respond within 24 hours. Moreover, it is critical for us to understand what is unclear from the first instance.

 

🧾   License

This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.

 

πŸ“–   Resources

Documentation

Publications

Others

 

🀝   Partners

 

πŸ†   Acknowledgments

We sincerely thank all those without whom this project would not have been possible:

⭐ Star us on GitHub β€” it motivates us a lot! ⭐

About

License:Apache License 2.0


Languages

Language:HTML 98.9%Language:Go 0.7%Language:Shell 0.2%Language:Makefile 0.1%Language:EJS 0.0%Language:Dockerfile 0.0%