oclif-web-ui
A Web UI for any CLI written with oclif
Last updated 2 months ago by junker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install oclif-web-ui 
SYNC missed versions from official npm registry.

oclif-web-ui

This projects aims to be a drop-in replacement for https://github.com/oclif/command in order to have a web UI for any CLI written with https://oclif.io/

Motivation

I wrote many CLI tools for developers, because they are easy to use and develop (no hastling with UIs). That's why I also wrote some easy CLI tools for non-technical people, but as they often had no experience with CLIs, they had trouble understanding them at first.

That's when I got the idea to create a tool that automatically creates a nice Web UI for your CLI.

Usage

Simply replace any occurence of @oclif/command with oclif-web-ui in your cli code. This should only affect import statements.

Afterwards, run your cli, your browser should open with yn UI view of your commands.

How it works

In the base Command class I intercept the run command and pass the cli config, which contains all information about the cli (commands, plugins...) to a local server class which I then start locally. Afterwards I open a browser and a localhost application (served from the local server instance) uses the cli config to display a nice UI of all commands, flags, options and so on.

TODO

  • hooks are not run anymore
  • Implement showing and executing flags
  • Implement showing and executing arguments
  • (UI-)Tests
  • CLI should exit when users closes the browser-window

Current Tags

  • 0.1.0                                ...           latest (2 months ago)

1 Versions

  • 0.1.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |