zeionara / coda

Web app for presenting cli features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coda

Command documentation app - a web tool for describing cli features.

For instruction on running the library app see docs in the coda folder.

Installation

To install the project run the following command:

npm install @zeionara/coda

To update execute the following command:

npm install @zeionara/coda@latest

Usage

Usage examples are provided in the corresponding folder. In particular, the tool can be used as shown in the snippet below, which allows to obtain the configuration demonstrated on the image above:

import { Command, Argument, Option, Flag, Operator, OperatorValue, Header, Fragment } from '@zeionara/coda'

function App() {
  return <div className="App">
    <Command name="coda">
      <Argument name="describe" description="describe command features" theme="blue" value="val"/>
      <Argument name="bar" description="describe command features" theme="red" optional/>
      <Argument name="fox" description="describe command features" theme="red" optional/>
      <Option name="quux" shortName="q" description="describe command features" theme="violet" optional/>
      <Flag name="corge" shortName="c" description="my first flag" theme="blue" optional enabled/>
      <Fragment name="grault" description="my first fragment" theme="blue" optional/>
      <Operator value={OperatorValue.Pipe} theme="blue"/>
      <Header name="bash"/>
    </Command>
  </div>
}

About

Web app for presenting cli features

License:Apache License 2.0


Languages

Language:TypeScript 80.4%Language:Sass 9.2%Language:HTML 6.9%Language:JavaScript 3.0%Language:Shell 0.6%