Show HN: Bashme_a_script_that", generate and cache bash scripts via promptcmd (promptcmd.sh)

1 points by tgalal ↗ HN
This is an example tool I created using my tool (promptcmd) for turning prompts into "native-looking" executables:

  Usage: bashme_a_script_that [OPTIONS] <query>...
  
  Prompt inputs:
        --stdin  accept stdin input
    <query>...   positional query. Can be spaced and with/without quotes
It makes use of caching responses: if I review the generated script and it looks good (or incomprehensible and I'm in YOLO mood), I run the command again and pipe directly into bash. It'll use the reviewed response instead of generating a new one.

Would love to get feedback or ideas for promptcmd:

Github: https://github.com/tgalal/promptcmd/

Documentation: https://docs.promptcmd.sh/

Examples: https://promptcmd.sh/lib/

0 comments

[ 1.8 ms ] story [ 7.2 ms ] thread

No comments yet.