A super simple HTML to bash compiler.
Project description
htmlishell
A super simple HTML to bash compiler, inspired by this moment.
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
<ls />
Transforms into
ls
ls
with arguments
<ls>
<all />
</ls>
Transforms into
ls --all
ls
with short arguments
<ls>
<all />
<l short=true />
</ls>
Transforms into
ls --all -l
Installing
Do not use pip
for Python packages (see this).
TLDR: not venv-wide pip
installation may break your system, use pipx
(it will manage venvs for you).
pipx install htmlishell
Then run
htmlishell ./path/to/your/file.html
Installing for local developing
git clone https://github.com/PerchunPak/htmlishell.git
cd htmlishell
Installing poetry
Next we need install poetry
with recommended way.
If you use Linux, use command:
curl -sSL https://install.python-poetry.org | python -
If you use Windows, open PowerShell with admin privileges and use:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
Installing dependencies
poetry install
If something is not clear
You can always write to me!
Thanks
This project was generated with python-template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
htmlishell-0.2.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for htmlishell-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d706b86226216be1d32b8f956d73795c82377a781c2517e555aa45ef3888de8f |
|
MD5 | 31bd384a543e9773e736f3fb2fb5d19f |
|
BLAKE2b-256 | d7341b6d72ca75563e43d3cfba925dbb40188fe6031c3cce44c03b3955f92bea |