Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
/ zsv-playground Public archive

a playground for zsv CLI executable (client/server model)

License

Notifications You must be signed in to change notification settings

iamazeem/zsv-playground

Repository files navigation

zsv-playground

ci License: MIT GitHub release (latest by date)

zsv-playground is a playground for zsv CLI executable for AMD64 Linux, MacOS, and FreeBSD.

Important

This is just a small proof of concept (PoC) and is only meant to explore what is possible.

Visit the official zsv playground instead: https://liquidaty.github.io/zsv.

How it works

  • On startup, zsv-playground downloads and extracts the latest three zsv releases to zsv subdirectory on the current path.
  • These downloaded zsv executables are used to serve the generated webpage in the browser.
  • The user inputs the CSV, selects a command, chooses the required flags, and hits Run.
  • The output is then shown under Result.

Demo

demo

Limitations

  • Only global flags and main commands are supported now.
    • Other commands are not supported.
  • Some commands require multiple files or non-flag CLI arguments as input.
    • This is currently not supported but may be added later.

Download

Download the latest binaries from the releases page.

Run

./zsv-playground

Go to http://localhost:8080/ in your browser.

Run zsv-playground --help to check the available CLI options.

Development

Tech stack

Build

git clone https://github.com/iamazeem/zsv-playground.git
cd zsv-playground
go build

Docker

Build:

docker build -t zsv-playground .

Run:

docker run -p 8080:8080 zsv-playground

Contribute

Feedback is always welcome!

Open an issue to report bugs or propose new features and enhancements.

  • Fork the project.
  • Check out the latest main branch.
  • Create a feature or bugfix branch.
  • Commit and push your changes.
  • Submit the PR.

License

MIT