Skip to content

Bash bindings for Pglet - easily build interactive web apps in Bash

License

Notifications You must be signed in to change notification settings

pglet/pglet-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e7d8c4b · Feb 18, 2022

History

58 Commits
Dec 12, 2021
Nov 13, 2020
Nov 23, 2020
Feb 4, 2021
Feb 18, 2022

Repository files navigation

Pglet client for Bash

Pglet ("piglet") is a rich user interface (UI) framework for scripts written in PowerShell or any other language. Pglet renders web UI, so you can easily build web apps with Bash. Knowledge of HTML/CSS/JavaScript is not required as you build UI with controls. Pglet controls are built with Fluent UI React to ensure your programs look cool and professional.

Requirements

  • Bash, Zsh on Linux or macOS. Windows is not supported.

Installation

Download pglet.sh helper script from our website:

curl -O https://pglet.io/pglet.sh

Hello, world!

Create hello.sh with the following content:

. pglet.sh

pglet_page
pglet_send "add text value='Hello, world!'"

Run sh hello.psh and in a new browser window you'll get:

Sample app in a browser

Here is a local page served by an instance of Pglet server started in the background on your computer.

Make it web

Add PGLET_WEB=true before pglet_page call:

. pglet.sh

PGLET_WEB=true pglet_page
pglet_send "add text value='Hello, world!'"

This time page will be created on Pglet hosted service.

Read Bash tutorial for further information and more examples.

About

Bash bindings for Pglet - easily build interactive web apps in Bash

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages