Skip to content

webzard-io/CLI2UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI2UI

CLI2UI is a simple tool that converts a CLI command to a fully functional web UI.

Usage

Simply run the binary with a well-defined config file (samples are found under /samples, JSON schema is also provided cli.schema.json):

./cli2ui <path-to-config>

CLI2UI supports both JSON and YAML as the config file; feel free to test out the samples under /samples to get a feel of how it works.

Development

.
├── cmd // Entry of the app.
├── patch // Auto-generated patch using `sunmao-ui`.
├── pkg
│   ├── config // Config file parser and script constructor. If the generated script is found wrong or malformed, this is the place to look at.
│   ├── executor // Script executor. It is now stable for the most part, but in case of any bugs with GoRoutine management, read this.
│   └── ui // Implementations of different styles of UIs. One can add new style, change how events are handled, or define new components here.
│       ├── flat
│       └── naive
├── samples // As the name suggests.
├── test
│   └── config
└── ui // Frontend implementation.
    └── src
        ├── application
        ├── assets
        ├── editor
        ├── modules
        └── sunmao
            └── components

About

Turn CLI into web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages