Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perchunpak/htmlishell
A super simple HTML to bash compiler.
https://github.com/perchunpak/htmlishell
Last synced: 7 days ago
JSON representation
A super simple HTML to bash compiler.
- Host: GitHub
- URL: https://github.com/perchunpak/htmlishell
- Owner: PerchunPak
- License: mit
- Created: 2024-03-06T16:36:23.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-07T22:40:14.000Z (8 months ago)
- Last Synced: 2024-08-09T15:47:11.801Z (3 months ago)
- Language: Python
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# htmlishell
[![Support Ukraine](https://badgen.net/badge/support/UKRAINE/?color=0057B8&labelColor=FFD700)](https://www.gov.uk/government/news/ukraine-what-you-can-do-to-help)
[![Build Status](https://github.com/PerchunPak/htmlishell/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/PerchunPak/htmlishell/actions?query=workflow%3Atest)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Python support versions badge (from pypi)](https://img.shields.io/pypi/pyversions/htmlishell)](https://www.python.org/downloads/)A super simple HTML to bash compiler, inspired by [this moment](https://youtu.be/mokGJiXVw_4?t=1384).
```
htmlishell
| |^^^^^
| \because with sh it didn't sound
\ what Primagen likes
I hate JS so much so I won't do react, but rather just html
```## Examples
I am too dumb (and lazy too) to do all the bash spec, so I just did a few features.
### Simple `ls`
```html
```
Transforms into
```bash
ls
```### `ls` with arguments
```html
```
Transforms into
```bash
ls --all
```### `ls` with short arguments
```html
```
Transforms into
```bash
ls --all -l
```## Installing
Do not use `pip` for Python packages (see [this](https://packaging.python.org/en/latest/specifications/externally-managed-environments/#externally-managed-environments)).
TLDR: not venv-wide `pip` installation may break your system, use [`pipx`](https://pipx.pypa.io/stable/installation/) (it will manage venvs for you).```bash
pipx install htmlishell
```Then run
```bash
htmlishell ./path/to/your/file.html
```## Installing for local developing
```bash
git clone https://github.com/PerchunPak/htmlishell.git
cd htmlishell
```### Installing `poetry`
Next we need install `poetry` with [recommended way](https://python-poetry.org/docs/master/#installation).
If you use Linux, use command:
```bash
curl -sSL https://install.python-poetry.org | python -
```If you use Windows, open PowerShell with admin privileges and use:
```powershell
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
```### Installing dependencies
```bash
poetry install
```### If something is not clear
You can always write to me!
## Thanks
This project was generated with [python-template](https://github.com/PerchunPak/python-template).