This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import traceback | |
from huckle import cli, stdin | |
try: | |
print(cli("huckle --version")) | |
cli("huckle cli install http://127.0.0.1:8000") | |
cli("huckle cli run hc connect") | |
cli("huckle cli run hc home") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import os | |
import errno | |
import sys | |
from apig_wsgi import make_lambda_handler | |
from hcli_core import hcli_core | |
app = hcli_core.connector(os.getcwd() + "/cli") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.11-alpine3.16 | |
EXPOSE 80 | |
RUN pip install --upgrade pip | |
RUN pip install hcli_core | |
RUN pip install gunicorn | |
CMD gunicorn --workers=5 --threads=2 --chdir `hcli_core path` -b 0.0.0.0:80 "hcli_core:connector()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<alps version="1.0"> | |
<doc>Hypertext Command Line Interface (HCLI) semantics.</doc> | |
<descriptor id="hcli-document" name="cli"> | |
<doc>A resource for providing HCLI argument choices</doc> | |
<descriptor rt="#command" type="safe" name="cli"/> | |
<descriptor rt="#option" type="safe" name="cli"/> | |
<descriptor rt="#parameter" type="safe" name="cli"/> | |
<descriptor rt="#execution" type="safe" name="cli"/> |