Socket
Socket
Sign inDemoInstall

rsi.cli

Package Overview
Dependencies
160
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rsi.cli

The swiss army knife for RSI related tasks.


Version published
Maintainers
1
Created

Changelog

Source

0.4.6 (2021-03-15)

Bug Fixes

  • service.init: yet another attempt to fix ignorance of template files (71c5e92)

<a name="0.4.5"></a>

Readme

Source

RSI (RESTful Service Interface) command line interface

Build Status npm version

RSI.cli

The swiss army knife for RSI related tasks.

This project supports the RESTful Service Interface as published under https://www.w3.org/Submission/2016/01/.

The framework proposes a slightly out-of-date JSON schema for service definitions, so this module uses the service schema published under https://github.com/wzr1337/rsi.schema

Installation

To install the cli globally run the following command:

$ npm i -g rsi.cli

Usage

Usage: rsi <commands...> [options...]

options

optionaliasmeaning
--version-vPrint the version
--help-hPrint this usage guide

commands

commandwhat it does
serviceoperate on service level
bundleoperate on service bundle level

service

Usage:

$ rsi service

prints you a list of available commands on service level.

commands

commandwhat it does
documentrender HTML documentation based on the schema
initinitialize a new repository
releaseprepare service for release
renderrender UML from schema
markdownrender markdown documentation based on the schema
validatevalidate a schema

bundle

Usage:

$ rsi bundle

prints you a list of available commands on service level.

commands

commandwhat it does
documentrender HTML documentation based on the schemas in the bundle
renderrender bundle UML
markdownrender markdown documentation based for bundle
validatevalidate a schemas in bundle
document

Usage:

$ rsi <service||bundle> document --sourceFolder <pathToServiceFolder> --output <pathToOutputFolder>

or

$ rsi <service||bundle> document -s <pathToServiceFolder> -o <pathToOutputFolder>

Renders a set of HTML documents out of the schema.json file contained in <pathToServiceFolder> into <pathToOutputFolder>.

RSI.doc.demo

options

optionaliasmeaning
--sourceFolder-sthe root folder of the project definition repository
--outputFolder-othe output folder for the generated documentation
--watch-wwatch the source folder for changes
init

Usage:

$ rsi service init

initializes an empty service definition repository with the following sturcture:

├── CHANGELOG.md
├── README.md
├── package.json
└── src
    └── schema.json

After you initialized the repository, you can start editing the src/schema.json file. Please be aware that it must comply with the schema definition found under https://github.com/wzr1337/rsi.schema/blob/master/doc/schema.spec.md

RSI.cli

options

init does not support any options

release

Usage:

$ rsi service release

releases a service definition in the desired way:

options

init does not support any options

render

Usage:

$ rsi <service||bundle> render --sourceFolder <pathToServiceFolder> --output <pathToOutputFolder>

or

$ rsi <service||bundle> render -s <pathToServiceFolder> -o <pathToOutputFolder>

Renders a class diagram (plantuml) out of the schema.json file contained in <pathToServiceFolder> into <pathToOutputFolder>.

options

optionaliasmeaning
--sourceFolder-sthe root folder of the project definition repository
--outputFolder-othe output folder for the generated diagram
--watch-wwatch the source folder for changes
markdown

Usage:

$ rsi <service||bundle> markdown --sourceFolder <pathToServiceFolder> --output <pathToOutputFolder>

or

$ rsi <service||bundle> markdown -s <pathToServiceFolder> -o <pathToOutputFolder>

Renders a markdown document out of the schema.json file contained in <pathToServiceFolder> into <pathToOutputFolder>.

options

optionaliasmeaning
--sourceFolder-sthe root folder of the project definition repository
--outputFolder-othe output folder for the generated documentation
--watch-wwatch the source folder for changes
validate

Usage:

$ rsi <service||bundle> validate --sourceFolder <pathToServiceFolder>

or

$ rsi <service||bundle> validate -s <pathToServiceFolder>

Validates schema.json file contained in <pathToServiceFolder>.

options

optionaliasmeaning
--sourceFolder-sthe root folder of the project definition repository
--watch-wwatch the source folder for changes

Keywords

FAQs

Last updated on 15 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc